From 11863c62bc16f492b5b954c862ab6ba11b7eacf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Gorej?= Date: Sat, 25 Nov 2023 17:42:47 +0100 Subject: [PATCH] ci: prevent a job from failing when a step fails (#7) --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dabc3d3..e48276f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,6 @@ on: jobs: test_github_action: runs-on: ubuntu-latest - continue-on-error: true outputs: output1: ${{ steps.test1.outcome }} output2: ${{ steps.test2.outcome }} @@ -25,6 +24,7 @@ jobs: uses: char0n/apidom-validate@main with: definition-file: ./.github/workflows/fixtures/openapi.json + - id: test2 name: "Test 2: Validate at Severity level 4 (Hints)" if: success() || failure() @@ -32,6 +32,7 @@ jobs: with: definition-file: ./.github/workflows/fixtures/openapi.json fails-on: 4 + continue-on-error: true verify_outcomes: needs: test_github_action