Skip to content

Commit 1f895eb

Browse files
author
zihugithub
committed
Clean workspace
1 parent 7843266 commit 1f895eb

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build_image_cuda.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ jobs:
124124
inference_tag: ${{ steps.export.outputs.inference_tag }}
125125
all_tag: ${{ steps.export.outputs.all_tag }}
126126
steps:
127-
- name: Set safe directory
128-
run: |
129-
git config --global --add safe.directory .
127+
- name: Clean workspace
128+
run: sudo rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* || true
130129

131130
- name: Checkout code
132131
uses: actions/checkout@v4
@@ -240,6 +239,9 @@ jobs:
240239
runs-on: [self-hosted, Linux, X64]
241240
if: needs.build.result == 'success'
242241
steps:
242+
- name: Clean workspace
243+
run: sudo rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* || true
244+
243245
- name: Checkout code
244246
uses: actions/checkout@v4
245247
with:

.github/workflows/push_image_harbor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
name: Push validated images to Harbor
1818
runs-on: [self-hosted, Linux, X64, nvidia-0, gpus-8]
1919
steps:
20+
- name: Clean workspace
21+
run: sudo rm -rf "$GITHUB_WORKSPACE"/* "$GITHUB_WORKSPACE"/.[!.]* || true
22+
2023
- name: Checkout code
2124
uses: actions/checkout@v4
2225

0 commit comments

Comments
 (0)