Skip to content

Commit c59cd09

Browse files
committed
chore: sparse checkout content from master
1 parent 3bfd93b commit c59cd09

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/cd-deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ jobs:
3737
ref: master
3838
path: master-content
3939

40-
- name: Setup sparse checkout for content from master
41-
run: |
42-
git -C ${{ env.BUILD_PATH }} sparse-checkout init --cone
43-
git -C ${{ env.BUILD_PATH }} sparse-checkout set src/content
44-
git -C ${{ env.BUILD_PATH }} fetch origin master
45-
git -C ${{ env.BUILD_PATH }} checkout origin/master -- src/content
40+
- name: Checkout src/content from master
41+
uses: actions/checkout@v4
42+
with:
43+
ref: master
44+
path: ${{ env.BUILD_PATH }}/src/content
45+
sparse-checkout: |
46+
src/content
4647
4748
- name: Setup pnpm
4849
uses: pnpm/action-setup@v4

0 commit comments

Comments
 (0)