You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g. when workflow is called externally, inputs variable is defined (e.g. ${{ inputs.foo }}). However when running workflow on the local repository, then inputs aren't defined.
How to check if inputs are not defined?
E.g.
my-job:
if: ${{ inputs is undefined }}
I think I can do something like: if: ${{ github.event.inputs.someinput == '' }}, but I don't think it's a good idea (as I need to hardcoded some input name). Is there another way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
E.g. when workflow is called externally,
inputs
variable is defined (e.g.${{ inputs.foo }}
). However when running workflow on the local repository, theninputs
aren't defined.How to check if
inputs
are not defined?E.g.
I think I can do something like:
if: ${{ github.event.inputs.someinput == '' }}
, but I don't think it's a good idea (as I need to hardcoded some input name). Is there another way?Beta Was this translation helpful? Give feedback.
All reactions