Skip to content

Commit

Permalink
build(ci): report status of optional jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Dec 9, 2024
1 parent 0198f18 commit e51a523
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr-precheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Wait for optional jobs

on:
workflow_run:
workflows:
- "Check generated code"

types:
- completed

jobs:
wait-for-optional-jobs:
runs-on: ubuntu-latest
steps:
- name: Check status of optional jobs
shell: bash
run: |
if [[ "${{ github.event.workflow_run.conclusion }}" == "success" || "${{ github.event.workflow_run.conclusion }}" == "skipped" ]]; then
echo "All optional jobs passed or were skipped."
else
echo "Some optional jobs failed."
exit 1
fi

0 comments on commit e51a523

Please sign in to comment.