Skip to content

Commit

Permalink
Merge pull request #246 from ublue-os/add-fan-in-workflow
Browse files Browse the repository at this point in the history
chore: add fan-in build-package workflow
  • Loading branch information
bsherman authored Feb 23, 2025
2 parents 184b1a2 + 0fb6273 commit 2ea5852
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,23 @@ jobs:
path: |
${{ steps.build_package.outputs.mock_dir }}/**/*.rpm
check:
name: Check all builds successful
if: always()
runs-on: ubuntu-latest
needs: [build_packages]
steps:
- name: Check Jobs
env:
JOBS: ${{ toJson(needs) }}
run: |
echo "Job status:"
echo $JOBS | jq -r 'to_entries[] | " - \(.key): \(.value.result)"'
for i in $(echo $JOBS | jq -r 'to_entries[] | .value.result'); do
if [ "$i" != "success" ] && [ "$i" != "skipped" ]; then
echo ""
echo "Status check not okay!"
exit 1
fi
done

0 comments on commit 2ea5852

Please sign in to comment.