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 }}