Skip to content

Commit

Permalink
Check job results in pr-builder (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA authored Aug 22, 2024
1 parent 836ce83 commit a11c2b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pr-builder.yaml
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'

0 comments on commit a11c2b0

Please sign in to comment.