瀏覽代碼

ci(bin-image): fix conditional run for skipped job

When the doc job is skipped, the dependent ones will be skipped
as well. To fix this issue we need to apply special conditions
to always run dependent jobs but not if canceled or failed.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
(cherry picked from commit d91bf690ef14cbf9c9d94b8a3c1c8885814f67fe)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
CrazyMax 1 年之前
父節點
當前提交
fac0982e6c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .github/workflows/bin-image.yml

+ 1 - 0
.github/workflows/bin-image.yml

@@ -82,6 +82,7 @@ jobs:
     needs:
       - validate-dco
       - prepare
+    if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
     strategy:
       fail-fast: false
       matrix: