How do I write something like this? At the moment using a colon seems to break everything. Is there an equivalent?
run-name: Something Running ${{ (inputs.cache-retain == 'true') ? '(with forced cache-retain)' : ''}}
e.g.
'Something running (with forced cache-retain)'
'Something running'
is what I'm looking for.
Github Actions doesn't support ternary expressions. But using this workaround should work:
${{ x && 'ifTrue' || 'ifFalse' }}
run: Something Running ${{ inputs.cache-retain == true && "(with forced cache retain)" || "" }}