瀏覽代碼

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>
(cherry picked from commit 0252a6f475005f2725403066b2ce08e471c0b369)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
CrazyMax 1 年之前
父節點
當前提交
811585331c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/bin-image.yml

+ 1 - 1
.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