From b673f6e6ce1b6f034ba823c9ff1008f7d8cfc2e2 Mon Sep 17 00:00:00 2001 From: Robin Bourianes Date: Thu, 14 Mar 2024 10:32:00 +0100 Subject: [PATCH] ci: workaround to run dependent jobs when ancestor is skipped [skip tests, skip app, build docs] --- .github/workflows/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 87fd78da..38ed234f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -55,7 +55,7 @@ jobs: build_app: name: Build app - if: ${{ !contains(github.event.head_commit.message, 'skip app') }} + if: ${{ always() && !cancelled() && !failure() && !contains(github.event.head_commit.message, 'skip app') }} needs: [ run_tests ] runs-on: ubuntu-22.04 steps: @@ -76,7 +76,7 @@ jobs: build_docs: name: Build docs - if: ${{ contains(github.event.head_commit.message, 'build doc') }} + if: ${{ always() && !cancelled() && !failure() && contains(github.event.head_commit.message, 'build doc') }} needs: [ run_tests ] runs-on: ubuntu-22.04 steps: