Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert set-output to use GITHUB_OUTPUT file #205

Closed
JP-Dhabolt opened this issue Oct 13, 2022 · 4 comments · Fixed by #206
Closed

Convert set-output to use GITHUB_OUTPUT file #205

JP-Dhabolt opened this issue Oct 13, 2022 · 4 comments · Fixed by #206
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@JP-Dhabolt
Copy link
Contributor

Due to a change on the Github side on 10/11, the use of set-output is now deprecated and will be disabled "soon". Instead, the action should append to the file designated with the environment variable GITHUB_OUTPUT.

As an example:
echo "::set-output name=new_tag::$tag" would be converted to echo "new_tag=$tag" >> $GITHUB_OUTPUT

@sbe-arg
Copy link
Collaborator

sbe-arg commented Oct 20, 2022

@JP-Dhabolt thanks for raising this.

@sbe-arg sbe-arg added enhancement New feature or request help wanted Extra attention is needed bug Something isn't working labels Oct 20, 2022
@Sandra-headscape
Copy link

#206 (comment)

am currently using 1.52.0, but upon checking realised this wasn't released as a new version as the build failed - https://github.com/anothrNick/github-tag-action/actions/runs/3372412451/jobs/5595804270

can I still use the updated version? thanks (:

@floriancircly
Copy link

floriancircly commented Nov 18, 2022

Hi, i am using 1.52.0 and i still get the following GitHub message: "Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files.".

@JP-Dhabolt
Copy link
Contributor Author

@sbe-arg, I believe the post-merge build (and hence publish) failed as it is a pull_request Event, and the trigger was my Fork, which would make the GITHUB_TOKEN not have the necessary permissions to push a new tag to the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants