Skip to content

Commit

Permalink
feat(workflows): Prevent skipped jobs from stopping downstream jobs -- 4
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Oct 4, 2024
1 parent 3fc8ab8 commit ccede0f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/workflow-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ jobs:
document:
needs: [trigger, update-lockfile]
uses: ./.github/workflows/document.yaml
if: always() && ${{ needs.trigger.outputs.document == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.document == 'true' }}
with:
branch_name: ${{ needs.trigger.outputs.branch_name }}
secrets: inherit
Expand All @@ -221,7 +221,7 @@ jobs:
render-readme:
needs: [trigger, update-lockfile]
uses: ./.github/workflows/render-readme.yaml
if: always() && ${{ needs.trigger.outputs.render-readme == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.render-readme == 'true' }}
with:
branch_name: ${{ needs.trigger.outputs.branch_name }}
secrets: inherit
Expand All @@ -232,20 +232,20 @@ jobs:

lint:
needs: [trigger, update-lockfile, document, render-readme]
if: always() && ${{ needs.trigger.outputs.lint == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.lint == 'true' }}
uses: ./.github/workflows/lint.yaml


spell-checker:
needs: [trigger, update-lockfile, document, render-readme]
if: always() && ${{ needs.trigger.outputs.spell-checker == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.spell-checker == 'true' }}
uses: ./.github/workflows/spell-checker.yaml
secrets: inherit


R-CMD-check:
needs: [trigger, update-lockfile, document, render-readme]
if: always() && ${{ needs.trigger.outputs.R-CMD-check == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.R-CMD-check == 'true' }}
uses: ./.github/workflows/R-CMD-check.yaml
with:
rcmdcheck_args: ${{ inputs.rcmdcheck_args }}
Expand All @@ -258,7 +258,7 @@ jobs:

code-coverage:
needs: [trigger, update-lockfile, document, render-readme]
if: always() && ${{ needs.trigger.outputs.code-coverage == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.code-coverage == 'true' }}
uses: ./.github/workflows/code-coverage.yaml
with:
cache_version: ${{ needs.trigger.outputs.cache_version }}
Expand All @@ -273,7 +273,7 @@ jobs:

pkgdown:
needs: [trigger, update-lockfile, document, render-readme]
if: always() && ${{ needs.trigger.outputs.pkgdown == 'true' }}
if: ${{ always() && !failure() && !cancelled() && ${{ needs.trigger.outputs.pkgdown == 'true' }}
uses: ./.github/workflows/pkgdown.yaml
with:
event_name: ${{ inputs.event_name }}
Expand Down

0 comments on commit ccede0f

Please sign in to comment.