From 9becceae09f2ab0923ea45d9da411f103e3b50de Mon Sep 17 00:00:00 2001 From: Mihails Date: Fri, 20 Dec 2024 10:47:52 +0100 Subject: [PATCH] fail workflow if run fails --- .github/workflows/test-code-samples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-code-samples.yaml b/.github/workflows/test-code-samples.yaml index 3823e8c3d..ef637dce0 100644 --- a/.github/workflows/test-code-samples.yaml +++ b/.github/workflows/test-code-samples.yaml @@ -25,7 +25,7 @@ jobs: APIFY_TOKEN: ${{ secrets.CODE_SAMPLE_TESTER_ACTOR_TOKEN }} BRANCH_NAME: ${{ env.branch_name }} run: | - curl -X POST "https://api.apify.com/v2/acts/X8D0L4wfpO8fCL1uL/run-sync" \ + curl --fail-with-body -X POST "https://api.apify.com/v2/acts/X8D0L4wfpO8fCL1uL/run-sync" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $APIFY_TOKEN" \ -d '{ "branch": "'"$BRANCH_NAME"'" }'