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

set-output command is deprecated #22

Open
andersc opened this issue Dec 15, 2022 · 7 comments
Open

set-output command is deprecated #22

andersc opened this issue Dec 15, 2022 · 7 comments

Comments

@andersc
Copy link

andersc commented Dec 15, 2022

[Run] battila7/get-version-action@v2.2.1
*
Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

@andersc
Copy link
Author

andersc commented Jan 25, 2023

Since this repository seams stale. I did a drop replace using ->

CarterChen247/version-retriever@v1

to get rid of the deprecation messages.

@caco3
Copy link

caco3 commented Feb 11, 2023

CarterChen247/version-retriever@v1

Here the link for whoever wants it: https://github.com/carterchen247/version-retriever

@dhkatz
Copy link

dhkatz commented May 30, 2023

I've updated this repository in a fork here https://github.com/dhkatz/get-version-action

@maltoze
Copy link

maltoze commented Jul 19, 2023

another repo can be used https://github.com/maltoze/get-version-action

@Marcono1234
Copy link

Marcono1234 commented Nov 5, 2023

Or if you just need the short ref name (e.g. v1.2.3) you can use the github.ref_name context property or the GITHUB_REF_NAME environment variable.

And as shown in this answer you can also remove the prefix like this when using the Ubuntu runner, for example to remove the v prefix:

echo "${GITHUB_REF_NAME#v}"

@Yc-Chen
Copy link

Yc-Chen commented May 29, 2024

get-version-action

@dhkatz I tried your fork. In your doc it says use dhkatz/get-version-action@v3 but v3 is not available. I guess you wanted people to use the tag dhkatz/get-version-action@v3.0.0, or you should create a branch named v3.

I wanted to raise an issue in your repo but it doesn't have issues...

@danielsiegl
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@caco3 @Yc-Chen @dhkatz @Marcono1234 @andersc @maltoze @danielsiegl and others