From 0252a6f475005f2725403066b2ce08e471c0b369 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:58:36 +0100 Subject: [PATCH] ci(bin-image): fix merge job run condition All underlying jobs inherit from the status of all parent jobs in the tree, not just the very parent. We need to apply the same kind of special condition. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/bin-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bin-image.yml b/.github/workflows/bin-image.yml index a6c20275fa..1bea309086 100644 --- a/.github/workflows/bin-image.yml +++ b/.github/workflows/bin-image.yml @@ -144,9 +144,9 @@ jobs: merge: runs-on: ubuntu-20.04 - if: github.event_name != 'pull_request' && github.repository == 'moby/moby' needs: - build + if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && github.event_name != 'pull_request' && github.repository == 'moby/moby' steps: - name: Download meta bake definition