diff --git a/.github/workflows/flame.yml b/.github/workflows/flame.yml index 69ba2e8..48c8b65 100644 --- a/.github/workflows/flame.yml +++ b/.github/workflows/flame.yml @@ -169,6 +169,17 @@ jobs: if: inputs.action == 'create' run: | nix run github:nix-community/nixos-anywhere -- --flake github:nmasur/dotfiles#flame --build-on remote --no-reboot --target-host ubuntu@${{ steps.host.outputs.stdout }} + reboot now + + - name: Wait on SSH After Reboot + if: inputs.action == 'create' + run: | + for i in $(seq 1 15); do + if $(nc -z -w 3 ${{ steps.host.outputs.stdout }} 22); then + exit 0 + fi + sleep 10 + done - name: Copy Identity File to Host if: inputs.action == 'create'