Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ jobs:

create_release:
runs-on: ubuntu-24.04
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name)
# By default, the "if" check here is skipped if one of the jobs in the "needs" block
# has been skipped. Adding `always()` ensures that we perform the check even if one
# of the jobs is skipped. We must check that the result of `build_release` is
# "success" and that `test` is one of "success" or "skipped" as a result to ensure
# we are only creating a release when the `test` job has suceeded or been skipped.
if: always() && contains(needs.build_release.result, 'success') && (contains(needs.test.result, 'success') || contains(needs.test.result, 'skipped')) && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs: [test, build_release]
outputs:
url: ${{ steps.create_release.outputs.upload_url }}
Expand Down