Skip to content

Commit 69c138d

Browse files
committed
Changed commiting to use GH Actions
1 parent b648788 commit 69c138d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/update-automation.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,15 @@ jobs:
5555
git checkout "$LATEST_TAG"
5656
cd ..
5757
58-
# Commit the submodule update
59-
git add third-party-src
60-
git commit -m "Update VS Code submodule to $LATEST_TAG"
58+
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
59+
echo "STAGING_BRANCH=$STAGING_BRANCH" >> $GITHUB_ENV
6160
62-
git push origin "$STAGING_BRANCH"
61+
- name: Commit and push changes
62+
uses: EndBug/add-and-commit@v9
63+
with:
64+
add: 'third-party-src'
65+
message: 'Update VS Code submodule to ${{ env.LATEST_TAG }}'
66+
new_branch: ${{ env.STAGING_BRANCH }}
67+
default_author: github_actions
6368

64-
echo "Created staging branch: $STAGING_BRANCH with VS Code $LATEST_TAG"
65-
fi
69+

0 commit comments

Comments
 (0)