From 157e6bc60a083dc5871230c1fffe03c7f55b73e2 Mon Sep 17 00:00:00 2001 From: Devesh-Skyflow Date: Wed, 22 Jul 2026 19:04:19 +0530 Subject: [PATCH] SK-3002 fix release workflow: use git switch to avoid v3 branch/path ambiguity The Commit changes step ran 'git checkout v3'. Since the repo now contains a v3/ directory, git could not disambiguate the 'v3' branch from the 'v3' path and failed with: fatal: 'v3' could be both a local file and a tracking branch. Use 'git switch' instead, which only operates on branches. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/shared-build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/shared-build-and-deploy.yml b/.github/workflows/shared-build-and-deploy.yml index d33f908a..15d9088a 100644 --- a/.github/workflows/shared-build-and-deploy.yml +++ b/.github/workflows/shared-build-and-deploy.yml @@ -103,7 +103,7 @@ jobs: git config user.email ${{ github.actor }}@users.noreply.github.com if [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then - git checkout ${{ env.branch_name }} + git switch ${{ env.branch_name }} fi git add v3/pom.xml