mirror of
https://github.com/0x5t4l1n/hunting.git
synced 2026-05-26 19:36:33 +00:00
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:
@@ -19,7 +19,7 @@ on:
|
||||
jobs:
|
||||
update-contributors:
|
||||
# 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
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
Reference in New Issue
Block a user