Skip to content

Commit

Permalink
ci: workaround to run dependent jobs when ancestor is skipped [skip t…
Browse files Browse the repository at this point in the history
…ests, skip app, build docs]
  • Loading branch information
robinbourianes-kalisio committed Mar 14, 2024
1 parent 3b0546d commit b673f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit b673f6e

Please sign in to comment.