Skip to content

Commit

Permalink
added error handling for reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
“Akash committed Aug 6, 2024
1 parent e410f26 commit dfe01f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ jobs:
- name: Reboot system
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.GCP_USERNAME }}@${{ secrets.GCP_VM_IP }} "sudo reboot"
ssh -o StrictHostKeyChecking=no ${{ secrets.GCP_USERNAME }}@${{ secrets.GCP_VM_IP }} "sudo reboot" || echo "Reboot initiated"
continue-on-error: true

0 comments on commit dfe01f2

Please sign in to comment.