-
As titled, I'd like to know how I can parse github envs in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi! As far as I know, there shouldn't be anything special about the inputs to this action. The typical workflow rules for inputs and environment variables should apply. In the above example, I think the issue would be that you are trying to reference environment variables directly in the workflow file (ex- So to summarize - Instead of Not sure how easy it is to compose context values together like you are doing ( |
Beta Was this translation helpful? Give feedback.
Hi!
As far as I know, there shouldn't be anything special about the inputs to this action. The typical workflow rules for inputs and environment variables should apply.
In the above example, I think the issue would be that you are trying to reference environment variables directly in the workflow file (ex-
tag: $GITHUB_ACTOR-$GITHUB_SHA
). Instead, I think you want to be accessing these variables via a context. Environment variables should only be used within the runner itself (so in shell scripts, actions, etc). Checkout the following link: https://docs.github.com/en/actions/reference/environment-variables#determining-when-to-use-default-environment-variables-or-contextsSo to summarize …