Skip to content

Commit 0363d08

Browse files
committed
ci: update token usage for pushing changes in CI workflow (#55)
* ci: update token usage for pushing changes in CI workflow * ci: add test for PAT token with API call in CI workflow * ci: remove PAT token test from CI workflow
1 parent 9124ace commit 0363d08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- uses: actions/checkout@v4
3838
with:
3939
ref: ${{ github.head_ref }}
40+
token: ${{ secrets.PAT_TOKEN }}
4041
- name: Make script executable
4142
run: chmod +x ./generate-cookiecutter-template-from-example-project.sh
4243
- name: Generate cookiecutter template
@@ -50,4 +51,4 @@ jobs:
5051
git config --local user.name "github-actions[bot]"
5152
git add .
5253
git diff --cached --quiet || git commit -m "ci: update generated cookiecutter template from example"
53-
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }} HEAD:${{ github.head_ref }}
54+
git push origin ${{ github.head_ref }}

0 commit comments

Comments
 (0)