Skip to content

How to use environment variables created during hook execution? #1905

Answered by caarlos0
swithek asked this question in Q&A
Discussion options

You must be logged in to vote

environment variables do not escape from the hooks, and using $() on yaml doesn't work either.

Env only accepts plain text values, if you need more complex things you probably need to run something like

VERSION_NAME=$(script) goreleaser release --rm-dist

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by caarlos0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants