Skip to content

Commit 878f54f

Browse files
committed
ci: clean self-hosted workspace before checkout
1 parent 49e1c5e commit 878f54f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/BPI-R4-Minimal-MTK-Bootloader-Test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ jobs:
2323
env:
2424
seed: BPI-R4-MINIMAL
2525
steps:
26-
- name: Repair workspace permissions
26+
- name: Clean workspace
2727
run: |
2828
mkdir -p "$GITHUB_WORKSPACE"
29-
podman unshare chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE"
29+
podman unshare bash -lc '
30+
set -e
31+
shopt -s dotglob nullglob
32+
rm -rf -- "$1"/*
33+
' bash "$GITHUB_WORKSPACE"
3034
3135
- name: Checkout
3236
uses: actions/checkout@v4

0 commit comments

Comments
 (0)