Slackbot
08/10/2023, 7:25 AMWebert Lima
08/10/2023, 7:26 AMTomas Dabašinskas
08/10/2023, 9:19 AMWebert Lima
08/10/2023, 1:45 PMif: ${{ success() }}
but on the same page, it tells to not use `${{ }}`on if conditions because it will convert the result to a string and strings are truthy.Webert Lima
08/10/2023, 1:50 PMjobs:
check:
if: contains(inputs.workflows, 'check')
...
build:
if: ${{ !cancelled() && needs.check.result != 'failure' && contains(inputs.workflows, 'build') }}
needs: check
...
test:
if: ${{ !cancelled() && needs.build.result != 'failure' && contains(inputs.workflows, 'test') }}
needs: build
...
Webert Lima
08/10/2023, 1:52 PMwith:
workflows: "build test"
And this will skip check
, and run only build
and test