Skip to content

Commit

Permalink
fix(workflow-dispatcher): Trigger only on "true"
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Oct 4, 2024
1 parent 935112b commit ab350d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/workflow-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
update-lockfile:
needs: trigger
if: ${{ needs.trigger.outputs.update-lockfile }}
if: ${{ needs.trigger.outputs.update-lockfile == 'true' }}
uses: ./.github/workflows/update-lockfile.yaml
with:
cache_version: ${{ needs.trigger.outputs.cache_version }}
Expand All @@ -208,7 +208,7 @@ jobs:

document:
needs: [trigger, update-lockfile]
if: ${{ needs.trigger.outputs.document }}
if: ${{ needs.trigger.outputs.document == 'true' }}
uses: ./.github/workflows/document.yaml
with:
branch_name: ${{ needs.trigger.outputs.branch_name }}
Expand All @@ -220,7 +220,7 @@ jobs:

render-readme:
needs: [trigger, update-lockfile]
if: ${{ needs.trigger.outputs.render-readme }}
if: ${{ needs.trigger.outputs.render-readme == 'true'}}
uses: ./.github/workflows/render-readme.yaml
with:
branch_name: ${{ needs.trigger.outputs.branch_name }}
Expand All @@ -232,20 +232,20 @@ jobs:

lint:
needs: [trigger, update-lockfile, document, render-readme]
if: ${{ needs.trigger.outputs.lint }}
if: ${{ needs.trigger.outputs.lint == 'true' }}
uses: ./.github/workflows/lint.yaml


spell-checker:
needs: [trigger, update-lockfile, document, render-readme]
if: ${{ needs.trigger.outputs.spell-checker }}
if: ${{ 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: ${{ needs.trigger.outputs.R-CMD-check }}
if: ${{ 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: ${{ needs.trigger.outputs.code-coverage }}
if: ${{ 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: ${{ needs.trigger.outputs.pkgdown }}
if: ${{ needs.trigger.outputs.pkgdown == 'true' }}
uses: ./.github/workflows/pkgdown.yaml
with:
event_name: ${{ inputs.event_name }}
Expand Down

0 comments on commit ab350d6

Please sign in to comment.