We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 907afef commit ba49bc2Copy full SHA for ba49bc2
1 file changed
.github/workflows/starter.yml
@@ -130,7 +130,7 @@ jobs:
130
call-generate-readme-workflow:
131
permissions:
132
contents: write # Explicitly grant write permission
133
- if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
+ 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')
134
uses: Keyfactor/actions/.github/workflows/generate-readme.yml@v5
135
secrets:
136
token: ${{ secrets.token }}
0 commit comments