Usage of job status check functions in conditionals #26881
-
In my workflow, I want to be able to clean up the macOS keychain regardless of whether the job succeeded:
From the documentation, I can do this so that this step always runs:
However, my workflow is also run on Windows and Ubuntu, so I only want to run this step on macOS:
Despite the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
rajivshah3:
This way only
|
Beta Was this translation helpful? Give feedback.
-
That worked, thanks so much! |
Beta Was this translation helpful? Give feedback.
-
You don’t actually need
|
Beta Was this translation helpful? Give feedback.
This way only
always()
is treated as an expression, and the rest as a literal string. You need to enclose the whole expression in${{ ... }}
: