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
lukasz-mitka opened this issue
Jan 25, 2023
· 2 comments
Labels
bugSomething isn't workingkeepLabel can be added as soon as we are sure the work on the issue is necessarytriagedNeeds extra internal investigation before adding ready-for-dev
Invalid workflow file: .github/workflows/env_container_name.yaml#L12
The workflow is not valid. .github/workflows/env_container_name.yaml (Line: 12, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IMAGE
nikola-jokic
added
keep
Label can be added as soon as we are sure the work on the issue is necessary
triaged
Needs extra internal investigation before adding ready-for-dev
labels
Jan 25, 2023
Hey @lukasz-mitka, thanks for submitting this one. It does seem like there's a mismatch between what's documented and what's possible.
Since the process of parsing the yaml includes both runner- and server-side operations, we won't be able to resolve this issue immediately with just a runner PR / change.
I will post an update here once we're at that point.
Jobs has no access to env variables, but steps can access. It's frustrated me.
I agree that we need to fix this issue, that looks unlogical, and a lot of developers waste time reinventing the wheel.
I found related issues, and this issue was not solved since 2021: #1189
Solving this problem can provide Github action more flexibility.
bugSomething isn't workingkeepLabel can be added as soon as we are sure the work on the issue is necessarytriagedNeeds extra internal investigation before adding ready-for-dev
Describe the bug
I'm trying to use env variable inside container name and I'm getting Startup Failures.
To Reproduce
Use env variable in a container name specifier. Example:
Expected behavior
Workflow should start with container from
env.IMAGE
env
context should be available: https://docs.github.com/en/actions/learn-github-actions/contexts#context-availabilityRunner Version and Platform
Can't tell, it doesn't start.
OS: Linux
What's not working?
Workflow doesn't start.
Found this and it's missing
env
:runner/src/Sdk/DTPipelines/workflow-v1.0.json
Lines 367 to 373 in ca7be16
Job Log Output
n/a
Runner and Worker's Diagnostic Logs
n/a
The text was updated successfully, but these errors were encountered: