Skip to content

Commit 2913852

Browse files
committed
fix: use sudo for workspace cleanup in build workflows
1 parent 249fc8b commit 2913852

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build-and-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: always()
4040
run: |
4141
sudo chown -R $USER:$USER ${{ github.workspace }} || true
42-
rm -rf ${{ github.workspace }}/* ${{ github.workspace }}/.* 2>/dev/null || true
42+
sudo rm -rf ${{ github.workspace }}/* ${{ github.workspace }}/.* 2>/dev/null || true
4343
4444
- name: Checkout repository
4545
uses: actions/checkout@v4
@@ -156,7 +156,7 @@ jobs:
156156
if: always()
157157
run: |
158158
sudo chown -R $USER:$USER ${{ github.workspace }} || true
159-
rm -rf ${{ github.workspace }}/* ${{ github.workspace }}/.* 2>/dev/null || true
159+
sudo rm -rf ${{ github.workspace }}/* ${{ github.workspace }}/.* 2>/dev/null || true
160160
161161
- name: Checkout repository
162162
uses: actions/checkout@v4

.github/workflows/snd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: always()
2828
run: |
2929
sudo chown -R $USER:$USER ${{ github.workspace }} || true
30-
rm -rf ${{ github.workspace }}/* ${{ github.workspace }}/.* 2>/dev/null || true
30+
sudo rm -rf ${{ github.workspace }}/* ${{ github.workspace }}/.* 2>/dev/null || true
3131
3232
- name: Checkout repository
3333
uses: actions/checkout@v4

0 commit comments

Comments
 (0)