diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c0de283..7c3a48b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,7 +51,7 @@ jobs: - name: Retrieve server hostname run: | TS_JSON=$(curl "https://api.tailscale.com/api/v2/device/${{ env.SERVER_ID }}" -u "${{ secrets.TS_KEY }}:") - HOSTNAME=$(echo $TS_JSON | jq -r '.name') + HOSTNAME=$(echo $TS_JSON | jq -r '.addresses[0]') echo "SERVER_HOSTNAME=$HOSTNAME" >> $GITHUB_ENV - name: Connect to Tailscale network