You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit: ${{ github.event_name != 'pull_request' }} # Only commit changes if not a PR
45
+
```
46
+
47
+
You can also run the tool as a Github action, rather than a reusable workflow:
48
+
49
+
```yaml
50
+
jobs:
51
+
render-docs:
39
52
permissions:
40
53
contents: write
41
54
@@ -45,7 +58,6 @@ jobs:
45
58
with:
46
59
source-path: './src'
47
60
target-path: './docs/api.md'
48
-
commit: ${{ github.event_name != 'pull_request' }} # Only commit changes if not a PR
49
61
```
50
62
51
63
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