Skip to content

Commit 168734b

Browse files
committed
check matrix jobs
1 parent 8ce89c9 commit 168734b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/dockerimage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,15 @@ jobs:
5555
platforms: linux/arm64
5656
push: ${{ (github.event_name != 'pull_request') && (github.repository == 'laradock/php-fpm') && (github.ref == 'refs/heads/master') }}
5757
tags: ${{ steps.meta.outputs.tags }}
58+
59+
final_check:
60+
runs-on: ubuntu-latest
61+
needs: build
62+
if: always()
63+
steps:
64+
- name: Fail if any matrix job failed
65+
run: |
66+
if [ "${{ needs.build.result }}" == "failure" ]; then
67+
echo "Some matrix jobs failed, marking workflow as failed."
68+
exit 1
69+
fi

0 commit comments

Comments
 (0)