Skip to content

Updating deprecated set-env in release workflow #32544

Discussion options

You must be logged in to vote

No, the {} in the documentation quote is just an odd way to mark placeholders. So you need something like this:

echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-32bit" >> $GITHUB_ENV

As a follow up question; is there a way to test my release workflow beyond committing a few file? It'd be a shame to have to make multiple commits for typos/etc.

I'd add a different trigger (e.g. push or workflow_dispatch) and push to a branch to test. Naturally you won't have the github.event.release.tag_name then, but you can test the same pattern with some other variable.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by glennzw
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants