File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5454 - name : Update major version tag
5555 run : |
5656 # Extract major version from tag (e.g., v1.2.3 -> v1)
57- TAG_NAME=${GITHUB_REF#refs/tags/}
58- MAJOR_VERSION=$(echo $TAG_NAME | cut -d. -f1)
57+ TAG_NAME=" ${GITHUB_REF#refs/tags/}"
58+ MAJOR_VERSION=$(echo " $TAG_NAME" | cut -d. -f1)
5959
6060 echo "Updating $MAJOR_VERSION to point to $TAG_NAME"
6161
6464 git config user.email "github-actions[bot]@users.noreply.github.com"
6565
6666 # Delete existing major tag if it exists
67- git tag -d $MAJOR_VERSION 2>/dev/null || true
68- git push origin :refs/tags/$MAJOR_VERSION 2>/dev/null || true
67+ git tag -d " $MAJOR_VERSION" 2>/dev/null || true
68+ git push origin " :refs/tags/$MAJOR_VERSION" 2>/dev/null || true
6969
7070 # Create new major tag pointing to current commit
71- git tag $MAJOR_VERSION
72- git push origin $MAJOR_VERSION
71+ git tag " $MAJOR_VERSION"
72+ git push origin " $MAJOR_VERSION"
You can’t perform that action at this time.
0 commit comments