Update Contributors in README #24
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: Update Contributors in README | |
on: | |
schedule: | |
- cron: '0 0 1-7 * SUN' | |
jobs: | |
update-contributors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Update contributors | |
run: make update-contributors | |
- name: Commit and push changes | |
run: | | |
git config --local user.name 'Pyroscope Bot' | |
git config --local user.email 'dmitry+bot@pyroscope.io' | |
if ! git diff --exit-code README.md; then | |
git add README.md | |
git commit -m 'docs: updates the list of contributors in README' | |
gh auth status | |
git push --force https://x-access-token:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} |