Skip to content

Update Contributors in README #24

Update Contributors in README

Update Contributors in README #24

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 }}