From 88c4aee5fb0109e80a7dc869f682020f61e6011e Mon Sep 17 00:00:00 2001 From: Paul Williams Date: Sun, 21 Sep 2025 20:31:29 +0530 Subject: [PATCH] ci: update token for pushing generated changes in CI workflow --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 21ef5cd..e951de2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -46,10 +46,10 @@ jobs: rsync -a --delete --exclude='.git' ./example-tryout/ ./{{cookiecutter.app_name}}/ - name: Commit & push generated changes env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PAT_TOKEN: ${{ secrets.PAT_TOKEN }} run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add . git diff --cached --quiet || git commit -m "ci: update generated cookiecutter template from example" - git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }} + git push https://x-access-token:${PAT_TOKEN}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }}