From 849586628e6c223501f5dd0480075edb8df20814 Mon Sep 17 00:00:00 2001 From: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Date: Sun, 2 Jun 2024 19:10:19 +1000 Subject: [PATCH] fix(contribs): add pat for repo --- .github/workflows/update_contributors.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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