diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90e8d05..6d4836e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,26 @@ jobs: - name: Install Pandora run: | echo "ip_address=$(curl -s ifconfig.me)" >> $GITHUB_ENV - + - name: test run: | echo IP Adress is: ${{ env.ip_address }} + - name: Restart and wait on server + shell: sleep 2 && shutdown -r now + async: 1 + poll: 0 + ignore_errors: true + + - name: Wait on server to return + local_action: + module: wait_for + host={{ env.ip_address }} + port=22 + delay=60 + timeout=300 + + - name: Done + run: | + echo "Done." +