Update to 1.18, remove loop

In release 1.16 and later, "tailscale up" will block until it can
connect to tailscaled and bring the link up. There is not a need
to loop any more.
This commit is contained in:
Denton Gentry 2021-11-19 06:38:05 -08:00
parent f3e0b07f2f
commit d1256d4577

View file

@ -13,7 +13,7 @@ inputs:
version:
description: 'Tailscale version to use.'
required: true
default: '1.14.0'
default: '1.18.0'
runs:
using: 'composite'
steps:
@ -41,7 +41,4 @@ runs:
run: |
sudo tailscaled 2>~/tailscaled.log &
HOSTNAME="github-$(cat /etc/hostname)"
until sudo tailscale up --authkey ${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes
do
sleep 0.5
done
sudo tailscale up --authkey ${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes