Skip to content

Commit fdda898

Browse files
committed
chore(ci): add cleanup step to devcontainer- workflows
Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
1 parent 858176b commit fdda898

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/devcontainer-linux.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
devcontainer-tag: ${{ steps.devcontainer-tag.outputs.tag }}
2121

2222
steps:
23+
- name: Clean workspace
24+
run: |
25+
git clean -ffdx || true
26+
git reset --hard || true
27+
git submodule foreach --recursive git clean -ffdx || true
28+
git submodule foreach --recursive git reset --hard || true
29+
git submodule deinit --all -f || true
30+
continue-on-error: true
31+
2332
- uses: actions/checkout@v4
2433
with:
2534
fetch-depth: 0

.github/workflows/devcontainer-zephyr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ jobs:
2020
devcontainer-tag: ${{ steps.devcontainer-tag.outputs.tag }}
2121

2222
steps:
23+
- name: Clean workspace
24+
run: |
25+
git clean -ffdx || true
26+
git reset --hard || true
27+
git submodule foreach --recursive git clean -ffdx || true
28+
git submodule foreach --recursive git reset --hard || true
29+
git submodule deinit --all -f || true
30+
continue-on-error: true
31+
2332
- uses: actions/checkout@v4
2433
with:
2534
fetch-depth: 0

0 commit comments

Comments
 (0)