diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 098b32e66..5020b7ad5 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -29,9 +29,11 @@ jobs: node .github/scripts/update-contributors.js - name: Commit and push if it's not up to date + env: + GITHUB_TOKEN: ${{ secrets.PAT }} run: | - git diff git config --global user.email "actions@github.com" git config --global user.name "GitHub Actions" + git diff git commit -am "chore(contributors): Update CONTRIBUTORS.md" || exit 0 - git push + git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}.git HEAD:master