From 8d95a00a514e5fc18f385d2ba3787ddc57d7d2c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:06:52 +0000 Subject: [PATCH 1/4] Initial plan From 7fccd53fbd7fb072da68f3e0e023c176ec197c99 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:09:35 +0000 Subject: [PATCH 2/4] Update python-sdk workflow to use PAT for cross-repo pushes and tag creation Co-authored-by: adeelehsan <8156837+adeelehsan@users.noreply.github.com> --- .github/workflows/python-sdk.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/python-sdk.yml b/.github/workflows/python-sdk.yml index 66220a09d..dbda0ebeb 100644 --- a/.github/workflows/python-sdk.yml +++ b/.github/workflows/python-sdk.yml @@ -8,6 +8,9 @@ on: required: true type: string +permissions: + contents: write + jobs: release: runs-on: ubuntu-latest @@ -27,3 +30,25 @@ jobs: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} run: | fern generate --group python-sdk --version ${{ inputs.version }} --log-level debug + + - name: Checkout python-sdk repo using PAT + uses: actions/checkout@v4 + with: + repository: vectara/python-sdk + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + ref: main + + - name: Create/force tag 0.4.0 and push + env: + GIT_AUTHOR_NAME: "github-actions[bot]" + GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com" + run: | + git config user.name "$GIT_AUTHOR_NAME" + git config user.email "$GIT_AUTHOR_EMAIL" + # Ensure we have the latest remote refs + git fetch origin + # Use the remote main head (the commit that was just pushed by fern) + TARGET_SHA=$(git rev-parse origin/main) + echo "Tagging commit $TARGET_SHA" + git tag -fa 0.4.0 "$TARGET_SHA" -m "Release 0.4.0" + git push --force origin refs/tags/0.4.0 From 523bc1da2acfa97ba57fcecc584f551007cd379b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:10:50 +0000 Subject: [PATCH 3/4] Use workflow input version for tag instead of hardcoding 0.4.0 Co-authored-by: adeelehsan <8156837+adeelehsan@users.noreply.github.com> --- .github/workflows/python-sdk.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-sdk.yml b/.github/workflows/python-sdk.yml index dbda0ebeb..e9a22234f 100644 --- a/.github/workflows/python-sdk.yml +++ b/.github/workflows/python-sdk.yml @@ -38,7 +38,7 @@ jobs: token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} ref: main - - name: Create/force tag 0.4.0 and push + - name: Create/force tag and push env: GIT_AUTHOR_NAME: "github-actions[bot]" GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com" @@ -50,5 +50,5 @@ jobs: # Use the remote main head (the commit that was just pushed by fern) TARGET_SHA=$(git rev-parse origin/main) echo "Tagging commit $TARGET_SHA" - git tag -fa 0.4.0 "$TARGET_SHA" -m "Release 0.4.0" - git push --force origin refs/tags/0.4.0 + git tag -fa ${{ inputs.version }} "$TARGET_SHA" -m "Release ${{ inputs.version }}" + git push --force origin refs/tags/${{ inputs.version }} From 735975ef143bbdf057cda1d1997663c70abb217e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 17:12:05 +0000 Subject: [PATCH 4/4] Update checkout action to v4 for consistency Co-authored-by: adeelehsan <8156837+adeelehsan@users.noreply.github.com> --- .github/workflows/python-sdk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-sdk.yml b/.github/workflows/python-sdk.yml index e9a22234f..8f42e5844 100644 --- a/.github/workflows/python-sdk.yml +++ b/.github/workflows/python-sdk.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3