Replies: 7 comments 6 replies
-
Thank you for the feedback. All of these macro replacements and evaluation the condition are done before the job is assigned to a runner. The idea is not spin compute on VMs if we don't have to. However, for some of the known values and particularly those in the UI we should go ahead and do the replacement. I have filed an issue and we will triage it. |
Beta Was this translation helpful? Give feedback.
-
@chrispat Any update on this? |
Beta Was this translation helpful? Give feedback.
-
Any update on this? Can the issue be attached to this discussion? |
Beta Was this translation helpful? Give feedback.
-
It will be nice to have fallback value if job is skipped based on if condition |
Beta Was this translation helpful? Give feedback.
-
Hello! Could we have the link to issue @chrispat please to track state/progress. Thanks |
Beta Was this translation helpful? Give feedback.
-
@chrispat Any updates? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? It's quite annoying that it is not evaluated |
Beta Was this translation helpful? Give feedback.
-
See original issue that was closed actions/runner#1215.
When a job is skipped, if it's
name
contains an expression then it is not evaluated. It makes sense, but from a UX perspective it is not ideal.To reproduce:
Additional example:
After a push to
main
you get this UI output:When manually run via workflow_dispatch, everything looks dandy in the UI.
Ideally, instead of
Backup ${{ github.event.inputs.environment }}
in the left-hand sidebar, it would sayBackup wwnewdev
somehow (I understand you can't use theenv
context in the job name, otherwise I would use that). Also, it would be ideal if in the job flow chart area it would be labeledBackup wwnewdev / Backup
.I understand that if a job is determined to be skipped then further evaluation does not make sense from a processing perspective so this is likely a "feature", but from a UX perspective it is annoying and can cause confusion.
Given the current state, is there any way to work around this to have some kind of graceful fallback? Is there any way to set a job's name dynamically if it is skipped? What have others done to work around this dilemma?
Beta Was this translation helpful? Give feedback.
All reactions