File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 31
31
uses : actions/checkout@v3
32
32
with :
33
33
fetch-depth : 0
34
- submodules : true
35
34
36
35
- name : Install Node.js v16
37
36
uses : actions/setup-node@v3
52
51
53
52
- name : Install dependencies
54
53
if : steps.cache-root-node-mods.outputs.cache-hit != 'true'
55
- run : yarn --frozen-lockfile
54
+ run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
56
55
57
56
- name : Run yarn fmt
58
57
run : yarn fmt
74
73
uses : actions/checkout@v3
75
74
with :
76
75
fetch-depth : 0
77
- submodules : true
76
+
77
+ - name : Get submodule hash
78
+ id : submodule-hash
79
+ run : |
80
+ echo "::set-output name=key::$(git ls-tree HEAD lib/vscode)"
81
+
82
+ - name : Fetch submodule from cache
83
+ id : cache-submodule
84
+ uses : actions/cache@v3
85
+ with :
86
+ path : " lib/vscode/**"
87
+ key : submodule-hash-${{ steps.submodule-hash.outputs.key }}
88
+ restore-keys : |
89
+ submodule-hash-
90
+
91
+ - name : Checkout submodule
92
+ if : steps.cache-submodule.outputs.cache-hit != 'true'
93
+ run : git submodule update --init
78
94
79
95
- name : Install quilt
80
96
run : sudo apt update && sudo apt install quilt
You can’t perform that action at this time.
0 commit comments