mirror of
https://github.com/0x5t4l1n/hunting.git
synced 2026-05-26 11:35:51 +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:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user