From a0f4380c9f56316def4e69156d9cc81d4a5c9f93 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 3 Jul 2025 23:02:28 -0600 Subject: [PATCH] adjust workflow for nixos-anywhere --- .github/workflows/flame.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'