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
In my github project I have different environments, eg. "App name 1 (Preview)", "App name 2(Preview)" where I've defined variables.
I have a github workflow (prepares apps), which uses a custom composite action (builds & deploys an app), which needs to use the variables from the relevant environment.
Problem: the environment variables are not being used during the build.
I believe the env variables need to be passed from the workflow to the action, because an action can't read variables? (could be wrong?)
Is there a way I can pass all the variables that are set up in the environment, so that I don't need to have inputs for each env variables (and add more inputs each time I need to add new variables).
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDQuestion
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Select Topic Area
Question
Body
In my github project I have different environments, eg. "App name 1 (Preview)", "App name 2(Preview)" where I've defined variables.
I have a github workflow (prepares apps), which uses a custom composite action (builds & deploys an app), which needs to use the variables from the relevant environment.
Problem: the environment variables are not being used during the build.
I believe the env variables need to be passed from the workflow to the action, because an action can't read variables? (could be wrong?)
Is there a way I can pass all the variables that are set up in the environment, so that I don't need to have inputs for each env variables (and add more inputs each time I need to add new variables).
Beta Was this translation helpful? Give feedback.
All reactions