mirror of
https://github.com/0x5t4l1n/hunting.git
synced 2026-05-26 11:35:51 +00:00
Merge pull request #13 from Stalin-143/copilot/add-profile-photo-username-hall-of-fame
Add explicit PR merge trigger for contributors workflow
This commit is contained in:
@@ -1,16 +1,25 @@
|
||||
name: Update Contributors
|
||||
name: Update Contributors Hall of Fame
|
||||
|
||||
on:
|
||||
# Trigger when PRs are merged to main (push to main branch)
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
# Trigger when pull requests are closed (merged)
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- main
|
||||
# Run daily at midnight UTC to catch any missed updates
|
||||
schedule:
|
||||
# Run daily at midnight UTC
|
||||
- cron: '0 0 * * *'
|
||||
# Allow manual trigger for on-demand updates
|
||||
workflow_dispatch:
|
||||
|
||||
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_name == 'pull_request' && github.event.pull_request.merged == true)
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -21,7 +30,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Update Contributors
|
||||
- name: Update Contributors Hall of Fame
|
||||
uses: akhilmhdh/contributors-readme-action@v2.3.6
|
||||
with:
|
||||
readme_path: "CONTRIBUTORS.md"
|
||||
|
||||
Reference in New Issue
Block a user