@@ -71,16 +71,11 @@ jobs:
71
71
ref : ${{ inputs.ref }}
72
72
clean : ${{ startsWith(runner.name, 'GitHub Actions') }}
73
73
74
- - name : Git Clean
74
+ - name : Clean
75
75
if : ${{ !inputs.skipable && !startsWith(runner.name, 'GitHub Actions') }}
76
- shell : bash
77
- run : |
78
- git config --system core.longpaths true
79
- echo "rm -rf node_modules"
80
- rm -rf node_modules
81
- echo "git clean -ffdx -e target"
82
- git clean -ffdx -e target
83
- git reset --hard HEAD
76
+ uses : ./.github/actions/clean
77
+ with :
78
+ target : ${{ inputs.target }}
84
79
85
80
- name : Setup tmate session
86
81
uses : mxschmitt/action-tmate@v3
@@ -225,16 +220,11 @@ jobs:
225
220
ref : ${{ inputs.ref }}
226
221
clean : ${{ startsWith(runner.name, 'GitHub Actions') }}
227
222
228
- - name : Git Clean
223
+ - name : Clean
229
224
if : ${{ !startsWith(runner.name, 'GitHub Actions') }}
230
- shell : bash
231
- run : |
232
- git config --system core.longpaths true
233
- echo "rm -rf node_modules"
234
- rm -rf node_modules
235
- echo "git clean -ffdx -e target"
236
- git clean -ffdx -e target
237
- git reset --hard HEAD
225
+ uses : ./.github/actions/clean
226
+ with :
227
+ target : ${{ inputs.target }}
238
228
239
229
- name : Download bindings
240
230
uses : ./.github/actions/download-artifact
@@ -282,16 +272,11 @@ jobs:
282
272
ref : ${{ inputs.ref }}
283
273
clean : ${{ startsWith(runner.name, 'GitHub Actions') }}
284
274
285
- - name : Git Clean
275
+ - name : Clean
286
276
if : ${{ !inputs.skipable && !startsWith(runner.name, 'GitHub Actions') }}
287
- shell : bash
288
- run : |
289
- git config --system core.longpaths true
290
- echo "rm -rf node_modules"
291
- rm -rf node_modules
292
- echo "git clean -ffdx -e target"
293
- git clean -ffdx -e target
294
- git reset --hard HEAD
277
+ uses : ./.github/actions/clean
278
+ with :
279
+ target : ${{ inputs.target }}
295
280
296
281
- name : Download bindings
297
282
if : ${{ !inputs.skipable }}
0 commit comments