diff --git a/.github/actions/run-via-ssh/action.yml b/.github/actions/run-via-ssh/action.yml index b7cefbe..c9ed87b 100644 --- a/.github/actions/run-via-ssh/action.yml +++ b/.github/actions/run-via-ssh/action.yml @@ -44,7 +44,9 @@ runs: - name: Run script shell: bash --noprofile --norc -eo pipefail -ux {0} - run: ssh -t ${{ inputs.ssh_username }}@${{ inputs.ts_hostname }} "${{ inputs.run }}" + run: | + SERVER_IP="$(tailscale ip -6 ${{ inputs.ts_hostname }})" + ssh -t ${{ inputs.ssh_username }}@$SERVER_IP "${{ inputs.run }}" - name: Nuke SSH keys shell: bash --noprofile --norc -eo pipefail -ux {0}