Skip to content

Commit 11863c6

Browse files
authored
ci: prevent a job from failing when a step fails (#7)
1 parent f3d008a commit 11863c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
jobs:
1313
test_github_action:
1414
runs-on: ubuntu-latest
15-
continue-on-error: true
1615
outputs:
1716
output1: ${{ steps.test1.outcome }}
1817
output2: ${{ steps.test2.outcome }}
@@ -25,13 +24,15 @@ jobs:
2524
uses: char0n/apidom-validate@main
2625
with:
2726
definition-file: ./.github/workflows/fixtures/openapi.json
27+
2828
- id: test2
2929
name: "Test 2: Validate at Severity level 4 (Hints)"
3030
if: success() || failure()
3131
uses: char0n/apidom-validate@main
3232
with:
3333
definition-file: ./.github/workflows/fixtures/openapi.json
3434
fails-on: 4
35+
continue-on-error: true
3536

3637
verify_outcomes:
3738
needs: test_github_action

0 commit comments

Comments
 (0)