Skip to content

Revert "chore(update-contributors): do not skip ci (#3556)" (#3577) #1398

Revert "chore(update-contributors): do not skip ci (#3556)" (#3577)

Revert "chore(update-contributors): do not skip ci (#3556)" (#3577) #1398

name: Update Contributors in README
on:
push:
branches: [main]
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 [skip ci]'
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 }}