fix: improve conditional logic in workflow to handle all event types safely

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-22 04:26:56 +00:00
parent 9674a4b595
commit 86f659b589
+1 -1
View File
@@ -19,7 +19,7 @@ on:
jobs: jobs:
update-contributors: update-contributors:
# Only run if push to main, scheduled, manual trigger, or PR merged to main # Only run if push to main, scheduled, manual trigger, or PR merged to main
if: github.event_name != 'pull_request' || github.event.pull_request.merged == true if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write