Skip to content

Commit

Permalink
Allows test job to be optional in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon committed Feb 6, 2023
1 parent 7288e05 commit 518b4aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
needs:
- lint
- test
# The test workflow is optional, and may be "skipped". The release should be
# created as long as the test does not fail.
if: |
always() &&
needs.lint.result == 'success' &&
(needs.test.result == 'success' || needs.test.result == 'skipped')
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 518b4aa

Please sign in to comment.