Skip to content

Commit

Permalink
check matrix jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bestlong committed Feb 21, 2025
1 parent 8ce89c9 commit 168734b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,15 @@ jobs:
platforms: linux/arm64
push: ${{ (github.event_name != 'pull_request') && (github.repository == 'laradock/php-fpm') && (github.ref == 'refs/heads/master') }}
tags: ${{ steps.meta.outputs.tags }}

final_check:
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: Fail if any matrix job failed
run: |
if [ "${{ needs.build.result }}" == "failure" ]; then
echo "Some matrix jobs failed, marking workflow as failed."
exit 1
fi

0 comments on commit 168734b

Please sign in to comment.