Skip to content

Commit ba49bc2

Browse files
committed
fix: run doctool on push to non-main branches and PR synchronize events
1 parent 907afef commit ba49bc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/starter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
call-generate-readme-workflow:
131131
permissions:
132132
contents: write # Explicitly grant write permission
133-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
133+
if: (github.event_name == 'push' && github.ref_name != 'main') || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.action == 'synchronize' && github.head_ref != 'main')
134134
uses: Keyfactor/actions/.github/workflows/generate-readme.yml@v5
135135
secrets:
136136
token: ${{ secrets.token }}

0 commit comments

Comments
 (0)