Skip to content

Commit

Permalink
ci: prevent a job from failing when a step fails (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n authored Nov 25, 2023
1 parent f3d008a commit 11863c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -25,13 +24,15 @@ 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()
uses: char0n/apidom-validate@main
with:
definition-file: ./.github/workflows/fixtures/openapi.json
fails-on: 4
continue-on-error: true

verify_outcomes:
needs: test_github_action
Expand Down

0 comments on commit 11863c6

Please sign in to comment.