Skip to content

Commit 12a410f

Browse files
Update condition for committing generated help in action.yml
1 parent d2ae1fe commit 12a410f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/ps-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runs:
8585
if-no-files-found: warn
8686

8787
- name: Commit generated help
88-
if: ${{ github.ref_name == 'main' && github.event_name == 'push' }}
88+
if: ${{ github.ref_name != 'main' && github.event_name == 'pull_request' }}
8989
shell: bash
9090
run: |
9191
git add docs/help

0 commit comments

Comments
 (0)