Skip to content

Commit c1c17b6

Browse files
authored
ci : adding gh token to release.sh (#153)
* ci: fixing script permissions * ci: adding access token remote to release.sh
1 parent 160c6ef commit c1c17b6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/scripts/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ mv "${TMP_CHGLOG}" "${CHGLOG_FILE}"
3131
# push changes
3232
git config --global user.name 'github-actions[bot]'
3333
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
34+
35+
# Configure the remote with the token
36+
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
37+
3438
git add pyproject.toml uv.lock "${CHGLOG_FILE}"
3539
COMMIT_MSG="chore: bump version to ${TARGET_VERSION} [skip ci]"
3640
git commit -m "${COMMIT_MSG}"

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ jobs:
6161
GH_TOKEN: ${{ steps.app-token.outputs.token }}
6262
TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }}
6363
CHGLOG_FILE: CHANGELOG.md
64+
GITHUB_REPOSITORY: ${{ github.repository }}
6465
run: ./.github/scripts/release.sh
6566
shell: bash

0 commit comments

Comments
 (0)