File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " r.obin.ch " : patch
3
+ ---
4
+
5
+ Sparse checkout master content instead copy
Original file line number Diff line number Diff line change 9
9
" streetsidesoftware.code-spell-checker" ,
10
10
" streetsidesoftware.code-spell-checker-german" ,
11
11
" esbenp.prettier-vscode" ,
12
- " eamodio.gitlens" ,
13
12
" mgmcdermott.vscode-language-babel" ,
14
13
" dbaeumer.vscode-eslint" ,
15
14
" eliostruyf.vscode-front-matter" ,
16
15
" unifiedjs.vscode-mdx" ,
17
- " github.vscode-github-actions"
16
+ " github.vscode-github-actions" ,
17
+ " GitHub.vscode-pull-request-github"
18
18
]
19
19
}
20
20
},
Original file line number Diff line number Diff line change @@ -37,10 +37,12 @@ jobs:
37
37
ref : master
38
38
path : master-content
39
39
40
- - name : Copy content from master
40
+ - name : Setup sparse checkout for content from master
41
41
run : |
42
- rm -rf ${{ env.BUILD_PATH }}/src/content
43
- cp -r master-content/src/content/ ${{ env.BUILD_PATH }}/src/
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
44
46
45
47
- name : Setup pnpm
46
48
uses : pnpm/action-setup@v4
You can’t perform that action at this time.
0 commit comments