Skip to content

Commit 32f22b1

Browse files
fix: Add safe dir to local windows runner
1 parent 9ab87bf commit 32f22b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,19 @@ jobs:
308308
timeout-minutes: 90
309309

310310
steps:
311-
- name: Symlink custom working directory
311+
- name: Symlink custom working directory (Window local runner)
312312
shell: cmd
313-
if: runner.os == 'Windows' && matrix.config.working-directory
313+
if: runner.name == 'WINDOWS-SIGN-PC' && matrix.config.working-directory
314314
run: |
315315
if not exist "${{ matrix.config.working-directory }}" mklink /d "${{ matrix.config.working-directory }}" "C:\actions-runner\_work\arduino-ide\arduino-ide"
316316
317317
- name: Checkout
318318
uses: actions/checkout@v4
319319

320+
- name: Set Safe Directory (Window local runner)
321+
if: runner.name == 'WINDOWS-SIGN-PC'
322+
run: git config --global --add safe.directory C:/actions-runner/_work/arduino-ide/arduino-ide
323+
320324

321325
- name: Install Node.js
322326
if: runner.name != 'WINDOWS-SIGN-PC'

0 commit comments

Comments
 (0)