Skip to content

Github.ref and failure() cannot be applied together? #27221

Discussion options

You must be logged in to vote
chenrui333:
        if: github.ref == 'refs/heads/master' && ${{ success() }}

You need to wrap the whole condition expression in ${{ ... }}, or omit it altogether (see jobs.<job_id>.steps.if):

        if: ${{ github.ref == 'refs/heads/master' && success() }}

Same for the failure() version.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants