Skip to content

Commit b009590

Browse files
SK-3002 fix release workflow: use git switch to avoid v3 branch/path ambiguity (#369)
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) <noreply@anthropic.com>
1 parent a0f3fcb commit b009590

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/shared-build-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
git config user.email ${{ github.actor }}@users.noreply.github.com
104104
105105
if [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then
106-
git checkout ${{ env.branch_name }}
106+
git switch ${{ env.branch_name }}
107107
fi
108108
109109
git add v3/pom.xml

0 commit comments

Comments
 (0)