From 6cd9755dc22dcdf5e7bc272922d240dc05162a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Wed, 15 Mar 2023 13:44:07 +0100 Subject: [PATCH] chore(ci): make job fail when curl returns http error code --- .github/workflows/start_benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/start_benchmark.yml b/.github/workflows/start_benchmark.yml index 9d00b44..4df8019 100644 --- a/.github/workflows/start_benchmark.yml +++ b/.github/workflows/start_benchmark.yml @@ -20,11 +20,11 @@ jobs: - name: Start AWS job in Slab shell: bash - # TODO: step result must be correlated to HTTP return code. run: | echo -n '{"command": "bench", "git_ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' > command.json SIGNATURE="$(slab/scripts/hmac_calculator.sh command.json '${{ secrets.JOB_SECRET }}')" curl -v -k \ + --fail-with-body \ -H "Content-Type: application/json" \ -H "X-Slab-Repository: ${{ github.repository }}" \ -H "X-Slab-Command: start_aws" \