-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check job results in pr-builder (#237)
- Loading branch information
1 parent
836ce83
commit a11c2b0
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
needs: | ||
required: false | ||
type: string | ||
default: '{}' | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# This reusable workflow should depend on all other jobs in the calling workflow. | ||
- run: exit 0 | ||
- name: "Check all dependent jobs" | ||
env: | ||
NEEDS: ${{ inputs.needs }} | ||
run: echo "$NEEDS" | jq -e 'any((.result as $result | ["success", "skipped"] | any($result == .)) | not) | not' |