mirror of
https://github.com/tailscale/github-action.git
synced 2026-08-20 23:19:24 +00:00
Merge pull request #181 from tailscale/mpminardi/windows-unattended-mode
{.github/workflows,action.yml}: run windows in unattended mode
This commit is contained in:
commit
84a3f23bb4
2 changed files with 5 additions and 2 deletions
2
.github/workflows/tailscale.yml
vendored
2
.github/workflows/tailscale.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, windows-11-arm]
|
||||
cache: ['false', 'true']
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -313,9 +313,12 @@ runs:
|
|||
if [ "${{ runner.os }}" != "Windows" ]; then
|
||||
MAYBE_SUDO="sudo -E"
|
||||
fi
|
||||
if [ "${{ runner.os }}" == "Windows" ]; then
|
||||
PLATFORM_SPECIFIC_ARGS="--unattended"
|
||||
fi
|
||||
for ((i=1;i<=$RETRY;i++)); do
|
||||
echo "Attempt $i to bring up Tailscale..."
|
||||
timeout --verbose --kill-after=1s ${TIMEOUT} ${MAYBE_SUDO} tailscale up ${TAGS_ARG} --authkey=${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${ADDITIONAL_ARGS} && break
|
||||
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
|
||||
echo "Tailscale up failed. Retrying in $((i * 5)) seconds..."
|
||||
sleep $((i * 5))
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue