Skip to content

Commit 7f57ee0

Browse files
committed
ci: clarify release checkout credentials
1 parent 1daea9a commit 7f57ee0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
with:
3131
fetch-depth: 0
32-
persist-credentials: false
32+
persist-credentials: true # release job pushes version changes
3333
- name: Check for changesets
3434
id: changesets
3535
run: |
@@ -64,7 +64,7 @@ jobs:
6464
git config user.email "github-actions[bot]@users.noreply.github.com"
6565
git add .
6666
if git commit -m "ci: changeset release"; then
67-
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "HEAD:${GITHUB_REF_NAME}"
67+
git push origin "HEAD:${GITHUB_REF_NAME}"
6868
echo "committed=true" >> "$GITHUB_OUTPUT"
6969
fi
7070
env:

0 commit comments

Comments
 (0)