Refresh author list #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Refresh author list | |
on: | |
workflow_dispatch: | |
schedule: | |
# Thursday mornings | |
- cron: '42 7 * * 4' | |
jobs: | |
refresh-versions: | |
runs-on: ubuntu-latest | |
name: Refresh authors | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Run refresh script | |
run: | | |
set -euo pipefail | |
bash refresh-authors.sh | |
if [ -z "$(git status --porcelain)" ]; then exit 0; fi | |
git config --global user.name 'Syncthing Release Automation' | |
git config --global user.email '[email protected]' | |
git commit -am 'Update author list' | |
git push |