Skip to content

Replace deprecated "set-env" #26345

Discussion options

You must be logged in to vote

This has been replaced by passing variables into $GITHUB_ENV.

docs.github.com

Workflow commands for GitHub Actions - GitHub Docs

For example:

echo "version_prefix=${release_version}" >> $GITHUB_ENV

The only thing I believe you’ll need to change in your workflow is echo commands and convert them to the new syntax. Be aware that this may be slightly different if your strings are multiline.

Replies: 5 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
3 participants