Skip to content

Commit 25004e3

Browse files
ci: remove previous workspace before ci/cd workflows (runfinch#1409)
Signed-off-by: Austin Vazquez <[email protected]>
1 parent f852097 commit 25004e3

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

.github/workflows/build-and-test-msi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
runs-on: [self-hosted, windows, amd64, release]
5858
timeout-minutes: 100
5959
steps:
60+
- name: Clean GitHub runner workspace
61+
run: |
62+
Remove-Item -Path "${{ github.workspace }}\*" -Recurse -Force -ErrorAction SilentlyContinue
6063
- name: Configure git CRLF settings
6164
run: |
6265
git config --global core.autocrlf false
@@ -164,6 +167,9 @@ jobs:
164167
runs-on: [self-hosted, windows, amd64, release]
165168
timeout-minutes: 180
166169
steps:
170+
- name: Clean GitHub runner workspace
171+
run: |
172+
Remove-Item -Path "${{ github.workspace }}\*" -Recurse -Force -ErrorAction SilentlyContinue
167173
- name: Configure git CRLF settings
168174
run: |
169175
git config --global core.autocrlf false

.github/workflows/build-pkg.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
]
4141
timeout-minutes: 60
4242
steps:
43+
- name: Clean macOS runner workspace
44+
run: |
45+
rm -rf ${{ github.workspace }}/*
46+
shell: zsh {0}
4347
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4448
with:
4549
ref: ${{ inputs.tag }}

.github/workflows/e2e-linux.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
container_report: ${{ steps.set-multiple-vars.outputs.CONTAINER_REPORT }}
4545
vm_serial_report: ${{ steps.set-multiple-vars.outputs.VM_SERIAL_REPORT }}
4646
steps:
47+
- name: Clean macOS runner workspace
48+
run: |
49+
rm -rf ${{ github.workspace }}/*
4750
- name: Allow Node16 on AL2
4851
if: ${{ (startsWith(inputs.os, 'amazon') && inputs.version == '2' ) }}
4952
run: |

.github/workflows/e2e-macos.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
container_report: ${{ steps.set-multiple-vars.outputs.CONTAINER_REPORT }}
4343
vm_serial_report: ${{ steps.set-multiple-vars.outputs.VM_SERIAL_REPORT }}
4444
steps:
45+
- name: Clean macOS runner workspace
46+
run: |
47+
rm -rf ${{ github.workspace }}/*
4548
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4649
with:
4750
# We need to get all the git tags to make version injection work. See VERSION in Makefile for more detail.

.github/workflows/e2e-windows.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
container_report: ${{ steps.set-multiple-vars.outputs.CONTAINER_REPORT }}
3939
vm_serial_report: ${{ steps.set-multiple-vars.outputs.VM_SERIAL_REPORT }}
4040
steps:
41+
- name: Clean GitHub runner workspace
42+
run: |
43+
Remove-Item -Path "${{ github.workspace }}\*" -Recurse -Force -ErrorAction SilentlyContinue
4144
- name: Configure git CRLF settings
4245
run: |
4346
git config --global core.autocrlf false

0 commit comments

Comments
 (0)