From 13b9c90584c7593f0d1df46c7c0c8ec89b206445 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Fri, 19 May 2023 15:32:25 +0200 Subject: [PATCH] Curl should fail if getting 4xx --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ac9f6de..33e4598 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,6 +41,7 @@ jobs: - name: Notify deployment starting run: | git show | curl \ + --fail-with-body \ -u "${{ secrets.NTFY_CREDS }}" \ -H "X-Title: Deployment to nki-personal-do started" \ -H "X-Tags: cloud" \ @@ -73,6 +74,7 @@ jobs: - name: Notify deployment succeeding run: | git show | curl \ + --fail-with-body \ -u "${{ secrets.NTFY_CREDS }}" \ -H "X-Title: Deployment to nki-personal-do succeeded" \ -H "X-Tags: tada,cloud" \ @@ -83,6 +85,7 @@ jobs: if: ${{ failure() }} run: | git show | curl \ + --fail-with-body \ -u "${{ secrets.NTFY_CREDS }}" \ -H "X-Title: Deployment to nki-personal-do failed" \ -H "X-Priority: 4" \