Skip to content

Commit

Permalink
Allow for continue on failure for negitive test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Oct 17, 2023
1 parent a0d41af commit 61543e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ jobs:
- uses: actions/checkout@v4

- id: approved-by-maintainers
continue-on-error: true
uses: ./ # Use the action
with:
token: ${{ secrets.GITHUB_TOKEN }}
maintainers: peternied
min-required: 1
mock-approvers: ''
mock-approvers: ' '

- if: steps.approved-by-maintainers.outcome != 'failure' || steps.approved-by-maintainers.outputs.maintainer-approvals != ''
run: echo "Unexpected outcome:${{ steps.approved-by-maintainers.outcome }} or maintainer-approvals:${{steps.approved-by-maintainers.outputs.maintainer-approvals}}"
Expand All @@ -59,6 +60,7 @@ jobs:
- uses: actions/checkout@v4

- id: approved-by-maintainers
continue-on-error: true
uses: ./ # Use the action
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -77,6 +79,7 @@ jobs:
- id: approved-by-maintainers
uses: ./ # Use the action
with:
continue-on-error: true
token: ${{ secrets.GITHUB_TOKEN }}
maintainers: 'peternied greengiant'
min-required: 2
Expand Down

0 comments on commit 61543e1

Please sign in to comment.