Skip to content

Merge branch 'main' of https://github.com/tphakala/birdnet-go #8

Merge branch 'main' of https://github.com/tphakala/birdnet-go

Merge branch 'main' of https://github.com/tphakala/birdnet-go #8

name: Update AUTHORS file
on:
# Run on push to main branch and monthly
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' # Monthly
workflow_dispatch: # Manual trigger
permissions:
contents: write
pull-requests: write
jobs:
update-authors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update AUTHORS file
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# 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-" | \
sort)
# Create new AUTHORS file
cat > AUTHORS << EOL
BirdNET-Go is work of
Tomi P. Hakala
Contributors:
$(echo "$contributors" | sed 's/^/@/')
Please let me know if you are missing from contributors list!
BirdNET model by the K. Lisa Yang Center for Conservation Bioacoustics
at the Cornell Lab of Ornithology in collaboration with Chemnitz
University of Technology. Stefan Kahl, Connor Wood, Maximilian Eibl,
Holger Klinck.
https://github.com/kahst/BirdNET-Analyzer
BirdNET label translations by Patrick Levin for BirdNET-Pi project by
Patrick McGuire.
https://github.com/patlevin
https://github.com/mcguirepr89/BirdNET-Pi
EOL
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'docs: update AUTHORS file with current contributors'
title: 'Update AUTHORS file'
body: |
Automatically updated AUTHORS file with current GitHub contributors.
Changes:
- Updated contributors list
- Excluded dependabot and other bots
- Sorted contributors alphabetically
This PR was created automatically by the update-authors workflow.
branch: update-authors
delete-branch: true