From 6def1c30ce3d422453c16f45f738edde9e8d81c0 Mon Sep 17 00:00:00 2001 From: Paul Williams Date: Wed, 24 Sep 2025 00:13:04 +0530 Subject: [PATCH] ci: update token reference for pushing generated changes --- .github/workflows/ci.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e951de2..d1581d5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,11 +45,9 @@ jobs: run: | rsync -a --delete --exclude='.git' ./example-tryout/ ./{{cookiecutter.app_name}}/ - name: Commit & push generated changes - env: - 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:${PAT_TOKEN}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }} + git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }}