Skip to content

What is the correct way to quote a conditional? #114150

Answered by ste-xx
scottwn asked this question in Actions
Discussion options

You must be logged in to vote

This should work:

if: ${{ !fromJson(steps.jira.outputs.response).fields.resolution && env.PROJECT == 'QNO' }}

Example workflow:
https://github.com/ste-xx/example-gh-wf/blob/main/.github/workflows/conditional.yml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scottwn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
2 participants