Updating deprecated set-env in release workflow #32544
-
Hi all, My Workflow release builds are failing with the error:
via this Workflow script: https://github.com/gophish/gophish/actions/runs/2852268619/workflow#L45 Following the documentation link from the above security release environmental variables should now be set like so:
My question is; would the below be a correct fix for my release.yml From this:
to this:
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. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, the echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-32bit" >> $GITHUB_ENV
I'd add a different trigger (e.g. |
Beta Was this translation helpful? Give feedback.
-
Great thanks so much @airtower-luna, that worked! I'm stuck on a new problem after this update, if you'd have time to give me a hand: https://github.com/orgs/community/discussions/32786 |
Beta Was this translation helpful? Give feedback.
No, the
{}
in the documentation quote is just an odd way to mark placeholders. So you need something like this:I'd add a different trigger (e.g.
push
orworkflow_dispatch
) and push to a branch to test. Naturally you won't have thegithub.event.release.tag_name
then, but you can test the same pattern with some other variable.