Moving args to env

This commit is contained in:
Harry 2021-11-24 14:26:32 +02:00
parent 5a57b3cfe8
commit b12eb1f32f

View file

@ -42,7 +42,8 @@ runs:
shell: bash
env:
TAILSCALE_AUTHKEY: ${{ inputs.authkey }}
ADDITIONAL_ARGS: ${{ inputs.args }}
run: |
sudo tailscaled 2>~/tailscaled.log &
HOSTNAME="github-$(cat /etc/hostname)"
sudo tailscale up --authkey ${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${INPUT_ARGS}
sudo tailscale up --authkey ${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${ADDITIONAL_ARGS}