Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check job results in pr-builder #237

Merged
merged 13 commits into from
Aug 22, 2024
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'
KyleFromNVIDIA marked this conversation as resolved.
Show resolved Hide resolved