diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh old mode 100644 new mode 100755 index 984c4e12..5f85c6d7 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -31,6 +31,10 @@ mv "${TMP_CHGLOG}" "${CHGLOG_FILE}" # push changes git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' + +# Configure the remote with the token +git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" + git add pyproject.toml uv.lock "${CHGLOG_FILE}" COMMIT_MSG="chore: bump version to ${TARGET_VERSION} [skip ci]" git commit -m "${COMMIT_MSG}" diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8a831498..a2d45ad1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,5 +61,6 @@ jobs: GH_TOKEN: ${{ steps.app-token.outputs.token }} TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }} CHGLOG_FILE: CHANGELOG.md + GITHUB_REPOSITORY: ${{ github.repository }} run: ./.github/scripts/release.sh shell: bash