From 4847aeddcba35a6867d62e8b68aeec61135b83fc Mon Sep 17 00:00:00 2001 From: Pascal <18620961+Courtsilius@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:50:10 +0200 Subject: [PATCH] ssh now fails completely if one command doesnt run --- .github/workflows/updateWebsite.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/updateWebsite.yml b/.github/workflows/updateWebsite.yml index 0a6b007..3c58b4c 100644 --- a/.github/workflows/updateWebsite.yml +++ b/.github/workflows/updateWebsite.yml @@ -23,6 +23,7 @@ jobs: - name: Update and Restart Server run: | ssh ${{ secrets.USER }}@${{ secrets.HOST }} << 'EOF' + set -e # Install nvm if not installed if ! command -v nvm &> /dev/null; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash