From e279cabfa07fdad8d177735fc6b4815d1c5b2ee0 Mon Sep 17 00:00:00 2001 From: Avinash Balakrishnan Date: Wed, 17 Sep 2025 14:02:03 -0700 Subject: [PATCH 1/2] ci: fixing script permissions --- .github/scripts/release.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .github/scripts/release.sh diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh old mode 100644 new mode 100755 From 614120f8d225039e267fe82ec9f9f31ba122ee90 Mon Sep 17 00:00:00 2001 From: Avinash Balakrishnan Date: Wed, 17 Sep 2025 16:17:47 -0700 Subject: [PATCH 2/2] ci: adding access token remote to release.sh --- .github/scripts/release.sh | 4 ++++ .github/workflows/cd.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index 984c4e12..5f85c6d7 100755 --- 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