Skip to content

Commit c803535

Browse files
authored
Revert "ci: clean node_modules and target (#7299)"
This reverts commit dbc5223.
1 parent dbc5223 commit c803535

File tree

2 files changed

+27
-64
lines changed

2 files changed

+27
-64
lines changed

.github/actions/clean/action.yml

-52
This file was deleted.

.github/workflows/reusable-build.yml

+27-12
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,16 @@ jobs:
7171
ref: ${{ inputs.ref }}
7272
clean: ${{ startsWith(runner.name, 'GitHub Actions') }}
7373

74-
- name: Clean
74+
- name: Git Clean
7575
if: ${{ !inputs.skipable && !startsWith(runner.name, 'GitHub Actions') }}
76-
uses: ./.github/actions/clean
77-
with:
78-
target: ${{ inputs.target }}
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
7984
8085
- name: Setup tmate session
8186
uses: mxschmitt/action-tmate@v3
@@ -220,11 +225,16 @@ jobs:
220225
ref: ${{ inputs.ref }}
221226
clean: ${{ startsWith(runner.name, 'GitHub Actions') }}
222227

223-
- name: Clean
228+
- name: Git Clean
224229
if: ${{ !startsWith(runner.name, 'GitHub Actions') }}
225-
uses: ./.github/actions/clean
226-
with:
227-
target: ${{ inputs.target }}
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
228238
229239
- name: Download bindings
230240
uses: ./.github/actions/download-artifact
@@ -272,11 +282,16 @@ jobs:
272282
ref: ${{ inputs.ref }}
273283
clean: ${{ startsWith(runner.name, 'GitHub Actions') }}
274284

275-
- name: Clean
285+
- name: Git Clean
276286
if: ${{ !inputs.skipable && !startsWith(runner.name, 'GitHub Actions') }}
277-
uses: ./.github/actions/clean
278-
with:
279-
target: ${{ inputs.target }}
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
280295
281296
- name: Download bindings
282297
if: ${{ !inputs.skipable }}

0 commit comments

Comments
 (0)