Skip to content

Commit 491c9f9

Browse files
committed
Test private checkout
1 parent 8b1aa9a commit 491c9f9

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/vercel-deploy-staging.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ jobs:
3939
- uses: actions/checkout@v4
4040
with:
4141
ref: ${{ github.event.pull_request.head.sha || github.sha }} # HEAD commit instead of merge commit
42+
submodules: recursive
43+
44+
- name: Try checkout submodules to the same branch as main repo
45+
run: |
46+
git submodule foreach '
47+
BRANCH=$(git -C $toplevel rev-parse --abbrev-ref HEAD);
48+
if git ls-remote --exit-code --heads origin "$BRANCH" > /dev/null; then
49+
git checkout "$BRANCH" && git pull origin "$BRANCH";
50+
fi;'
51+
52+
- name: Show readme
53+
run: |
54+
cat ./packages/sdk-components-animation/private-src/README.md
4255
4356
- uses: pnpm/action-setup@v4
4457
- uses: actions/setup-node@v4

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "packages/sdk-components-animation/private-src"]
22
path = packages/sdk-components-animation/private-src
33
url = [email protected]:webstudio-is/sdk-components-animation.git
4-
branch = .
4+
branch = main

0 commit comments

Comments
 (0)