I am trying to set a value based on a condition whether an environment variable is bigger than x.
Something like:
steps:
... setting env.COVERAGE
- name: create badge
with:
...
color: ${{ env.COVERAGE > 90 && 'green' || 'red' }}
I understand how to set a value on condition (${{ condition && ifTrue || ifFalse }}) but did not manage to use the value as a number.
How can I do that?