Skip to content

Commit

Permalink
chore: update GitHub Actions workflow for AUTHORS file
Browse files Browse the repository at this point in the history
- Modified the update-authors.yml workflow to run only on a monthly schedule instead of on push to the main branch.
- Simplified the contributor filtering logic by changing the regex to exclude all bot accounts in a single line, enhancing maintainability.

These changes streamline the process of updating the AUTHORS file and improve the clarity of the workflow configuration.
  • Loading branch information
tphakala committed Jan 15, 2025
1 parent a6b1c97 commit 073bcb7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/update-authors.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Update AUTHORS file

on:
# Run on push to main branch and monthly
push:
branches: [ main ]
# Run monthly
schedule:
- cron: '0 0 1 * *' # Monthly
workflow_dispatch: # Manual trigger
Expand All @@ -28,8 +26,7 @@ jobs:
# Fetch all contributors using GitHub CLI and filter out bots and owner
contributors=$(gh api repos/tphakala/birdnet-go/contributors --jq '.[].login' | \
grep -v "tphakala" | \
grep -v "dependabot\[bot\]" | \
grep -v "^bot-" | \
grep -v "\[bot\]" | \
sort)
# Create new AUTHORS file
Expand Down

0 comments on commit 073bcb7

Please sign in to comment.