File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 2121 run : |
2222 cd third-party-src
2323 git fetch --tags
24- CURRENT_TAG=$(git describe --tags --exact-match HEAD 2>/dev/null | head -1 || echo "")
24+ CURRENT_TAG=$(git describe --tags --exact-match HEAD 2>/dev/null | head -1)
25+ if [ -z "$CURRENT_TAG" ]; then
26+ echo "Error: Submodule is not on a tagged commit"
27+ exit 1
28+ fi
2529 cd ..
2630
2731 LATEST_TAG=$(curl -L \
4347 echo "Creating staging branch: $STAGING_BRANCH"
4448
4549 git checkout -b "$STAGING_BRANCH"
50+
51+ # Update submodule to latest VS Code release
52+ echo "Updating submodule to $LATEST_TAG"
53+ cd third-party-src
54+ git fetch --tags
55+ git checkout "$LATEST_TAG"
56+ cd ..
57+
58+ # Commit the submodule update
59+ git add third-party-src
60+ git commit -m "Update VS Code submodule to $LATEST_TAG"
61+
4662 git push origin "$STAGING_BRANCH"
4763
48- echo "Created staging branch: $STAGING_BRANCH"
64+ echo "Created staging branch: $STAGING_BRANCH with VS Code $LATEST_TAG "
4965 fi
You can’t perform that action at this time.
0 commit comments