Skip to content

Commit 84a3f23

Browse files
authored
Merge pull request #181 from tailscale/mpminardi/windows-unattended-mode
{.github/workflows,action.yml}: run windows in unattended mode
2 parents 6986d2c + 8fe6f78 commit 84a3f23

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/tailscale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
os: [ubuntu-latest, windows-latest, macos-latest]
16+
os: [ubuntu-latest, windows-latest, macos-latest, windows-11-arm]
1717
cache: ['false', 'true']
1818
runs-on: ${{ matrix.os }}
1919
steps:

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,12 @@ runs:
313313
if [ "${{ runner.os }}" != "Windows" ]; then
314314
MAYBE_SUDO="sudo -E"
315315
fi
316+
if [ "${{ runner.os }}" == "Windows" ]; then
317+
PLATFORM_SPECIFIC_ARGS="--unattended"
318+
fi
316319
for ((i=1;i<=$RETRY;i++)); do
317320
echo "Attempt $i to bring up Tailscale..."
318-
timeout --verbose --kill-after=1s ${TIMEOUT} ${MAYBE_SUDO} tailscale up ${TAGS_ARG} --authkey=${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${ADDITIONAL_ARGS} && break
321+
timeout --verbose --kill-after=1s ${TIMEOUT} ${MAYBE_SUDO} tailscale up ${TAGS_ARG} --authkey=${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${PLATFORM_SPECIFIC_ARGS} ${ADDITIONAL_ARGS} && break
319322
echo "Tailscale up failed. Retrying in $((i * 5)) seconds..."
320323
sleep $((i * 5))
321324
done

0 commit comments

Comments
 (0)