Github.ref and failure() cannot be applied together? #27221
-
I was trying to add some slack notifications into my github action job, but found that The code looks like below and both success() and failure() got executed all the time.
The workaround I did is to move those two slack notification steps into separate job, so that I can do something like this, and it seems working for my favor.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
chenrui333:
You need to wrap the whole condition expression in
Same for the |
Beta Was this translation helpful? Give feedback.
-
Thanks, it works for me. |
Beta Was this translation helpful? Give feedback.
You need to wrap the whole condition expression in
${{ ... }}
, or omit it altogether (seejobs.<job_id>.steps.if
):Same for the
failure()
version.