Skip to content

Commit e407a4f

Browse files
committed
Add information on how to skip committing on PRs
1 parent 0dbb855 commit e407a4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
with:
4646
source-path: './src'
4747
target-path: './docs/api.md'
48+
commit: ${{ github.event_name != 'pull_request' }} # Only commit changes if not a PR
4849
```
4950
5051
Please note that this workflow only triggers when files are modified that match the given `paths:` pattern. This can be useful to avoid unnecessary workflow runs.

0 commit comments

Comments
 (0)