Skip to content

Commit b648788

Browse files
committed
Added fetching latest code oss release
1 parent 6b28177 commit b648788

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/update-automation.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
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 \
@@ -43,7 +47,19 @@ jobs:
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

0 commit comments

Comments
 (0)