Skip to content

Commit ad75881

Browse files
authored
ci: update token reference for pushing generated changes (#48)
1 parent 5ff10c1 commit ad75881

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ jobs:
4545
run: |
4646
rsync -a --delete --exclude='.git' ./example-tryout/ ./{{cookiecutter.app_name}}/
4747
- name: Commit & push generated changes
48-
env:
49-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
5048
run: |
5149
git config --local user.email "github-actions[bot]@users.noreply.github.com"
5250
git config --local user.name "github-actions[bot]"
5351
git add .
5452
git diff --cached --quiet || git commit -m "ci: update generated cookiecutter template from example"
55-
git push https://x-access-token:${PAT_TOKEN}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }}
53+
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }}

0 commit comments

Comments
 (0)