Skip to content

Commit 1677d65

Browse files
cleanup
1 parent 4222642 commit 1677d65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ jobs:
300300
- name: Create
301301
shell: cmd
302302
if: runner.os == 'Windows' && matrix.config.working-directory
303-
run: mkdir "${{ matrix.config.working-directory }}"
303+
run: if not exist "${{ matrix.config.working-directory }}" mkdir "${{ matrix.config.working-directory }}"
304304

305305
- name: Checkout
306306
if: fromJSON(matrix.config.container) == null
@@ -431,6 +431,10 @@ jobs:
431431
with:
432432
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
433433
path: ${{ runner.os == 'Windows' && matrix.config.relative-working-directory && format('{0}/{1}', matrix.config.relative-working-directory, env.BUILD_ARTIFACTS_PATH) || env.BUILD_ARTIFACTS_PATH }}
434+
435+
- name: Manual Clean up for self-hosted runners
436+
if: runner.os == 'Windows' && matrix.config.working-directory
437+
run: rmdir /s /q "${{ matrix.config.working-directory }}"
434438

435439
merge-channel-files:
436440
needs:

0 commit comments

Comments
 (0)