I know Jobs have an
if parameter, but it doesn’t seem to be possible to use an output of a previous Job in the expression for the
As an example:
... jobs: run-check: outputs: approved: steps.pr-eval.outputs.approved steps: - name: PR Approval Status id: pr-eval run: | <do some checks> echo "::set-output name=approved::true" deploy: needs: [run-check] // Invalid "Unrecognised named-value: 'jobs' if: jobs.run-check.outputs.approved == 'true' // None of these work if: needs.run-check.outputs.approved if: needs.run-check.outputs.approved == 'true' if: needs.run-check.outputs.approved == true
Anyone got any ideas or is this just not possible?