Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Update Github Runner Node version and deprecate set-output #546

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

maggie44
Copy link
Contributor

@maggie44 maggie44 commented Oct 14, 2022

Update Runner Node version. Resolves: #543
Remove deprecated set-output command. Resolves: #544
bump @actions/core from 1.4.0 to 1.10.0 to resolve set-output issues in dependencies.

This was referenced Oct 14, 2022
@maggie44 maggie44 force-pushed the node-update branch 3 times, most recently from 4e54979 to 257f3a5 Compare October 14, 2022 16:13
@maggie44 maggie44 marked this pull request as draft October 14, 2022 16:17
@ldeluigi
Copy link
Contributor

LGTM

@maggie44 maggie44 marked this pull request as ready for review October 15, 2022 11:56
@francesco-ballarin
Copy link

francesco-ballarin commented Oct 30, 2022

Is it possible that there are a couple more occurrences of set-output to be changed, at least in the automatic releases action?
I see two warnings about set-output in my CI logs, and I am unsure if they are the ones that @Maggie0002 already found. Indeed, the calls changed in this PR seem to be associated to the CI of this repo, but not in the actions themselves.

For instance, looking at the automatic releases action, I can see set-output mentioned in
https://github.com/marvinpinto/action-automatic-releases/blob/master/dist/index.js
I have no experience in how this javascript file is generated, but I guess two calls to set-output may come in from
https://github.com/marvinpinto/actions/blob/master/packages/automatic-releases/src/main.ts#L319
https://github.com/marvinpinto/actions/blob/master/packages/automatic-releases/src/main.ts#L320

@Maggie0002 @marvinpinto looking forward to your feedback!

@maggie44
Copy link
Contributor Author

@francesco-ballarin, the index.js you are pointing to is the built output of this repo. Once this PR is merged, it will build and deploy new code to replace index.js.

setOutput is different to set-output.

If you have tested it and finding some issues then let us know, but it is best to describe how you have tested this and the issues you are running in to with it.

@francesco-ballarin
Copy link

Thanks @Maggie0002

Unfortunately I don't know how to test this, at least until @marvinpinto merges this PR.
The two warnings I am mentioning come from the currently released version of the automatic releases action.

My suspicion that setOutput calls the deprecated set-output stems from this line https://github.com/actions/toolkit/blob/b36e704/packages/core/src/core.ts#L199

@maggie44
Copy link
Contributor Author

maggie44 commented Oct 31, 2022

@francesco-ballarin, wow you really dug deep, good job.

The point you're referencing though is an external package. I can't imagine it would make a difference here as there are no signs of set-output in the build output and the issue seems to relate only to the use of set-output with stdout (https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/). If it does though, then it would be a pull request on the other repo to fix it rather than here (and then a package bump here). It shouldn't impact displaying of the error message either way and I don't think will impact the package.

@marvinpinto will be looking at all these before merging too, and will certainly know best from having built this particular build setup.

@francesco-ballarin
Copy link

francesco-ballarin commented Nov 3, 2022

@marvinpinto @Maggie0002 FYI, about core.setOutput: actions/toolkit#1218, which would probably require #535 to be merged

@maggie44
Copy link
Contributor Author

maggie44 commented Nov 3, 2022

@francesco-ballarin I added the package bump here, you can try testing this out.

@francesco-ballarin
Copy link

@marvinpinto how can I test this? I typically use https://github.com/marvinpinto/action-automatic-releases, but my understanding is that such a repository will get updated only after this PR is merged.

@maggie44
Copy link
Contributor Author

maggie44 commented Nov 3, 2022

This branch has the packages built for each in it: maggie44@1c38253

You would have to push each folder to a new repo, like this one for the automatic-releases: https://github.com/maggie0002/actions/tree/1c38253e5516e60baa8df5b62217f1dfbc476715/packages/automatic-releases

Then when that folder is in a repo by itself and in the root you would swap the code to point to your test package:

- - uses: "marvinpinto/action-automatic-releases@latest"
+ - uses: "francesco-ballarin/action-automatic-releases@latest"

@francesco-ballarin
Copy link

Thanks @Maggie0002! I can confirm that on my project this PR fixes both deprecation warnings.

CI run before this PR: https://github.com/fem-on-colab/fem-on-colab/actions/runs/3385955348 (notice: 3 warnings)
Temporary commit changing the action to your repo: fem-on-colab/fem-on-colab@d6a34cb
CI run after this PR: https://github.com/fem-on-colab/fem-on-colab/actions/runs/3385937266 (notice: 0 warnings)

@marvinpinto looking forward to seeing this PR merged soon!

@AlessandroMinunnoNOV
Copy link

Hi,

Do you have any idea when this PR will be merged and released?

Thanks

@ldeluigi
Copy link
Contributor

It seems that this repo is a bit abandoned

@triplef
Copy link

triplef commented Jan 3, 2023

@marvinpinto any chance getting this merged? 🙏

Otherwise can anyone suggest an alternative to "GitHub Automatic Releases" that is still being maintained?

@mjlshen
Copy link

mjlshen commented Jan 9, 2023

I've been using https://github.com/softprops/action-gh-release, which is still actively maintained

@dimaqq
Copy link

dimaqq commented Mar 1, 2023

@marvinpinto 🙏🏻

@PtPrashantTripathi
Copy link

Hi @marvinpinto , I came across your repository and found a venrablity in it.

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/

However, I saw that @maggie44 has already created a pull request to fix the issue.

I have tested the fix and can confirm that it works well. I think it would be great if you could review and merge the pull request.

This will help other users who depend on your repository. Thank you for maintaining this valuable resource!

@wiverson
Copy link

Not to be an alarmist or anything, but the GitHub post on this topic states:

We are monitoring telemetry for the usage of these commands and plan to fully disable them on 31st May 2023. Starting 1st June 2023 workflows using save-state or set-output commands via stdout will fail with an error.

That's not very far out...

@SimonDarksideJ
Copy link

SimonDarksideJ commented May 10, 2023

Any likelihood of this PR being merged and a new release pushed any time soon, the fixes look good and match what I've implemented in my other repos. Time is running out before these deprecated features will be turned off @marvinpinto .

@glensc
Copy link

glensc commented May 11, 2023

Before you write yet another "ping" like noise here, see that the user is actually active from their profile page:

@wiverson
Copy link

FWIW, the profile shows no activity in over a month.

@SimonDarksideJ
Copy link

SimonDarksideJ commented May 11, 2023

So I see, which could effectively state that this specific project/repo "could be" dead, but a ping does email the user to "check-in"
Odd since this is one of the three projects "recommended" by the GitHub Actions team as a replacement for their deprecated Releases action.

Shame, but here's hoping the dev is able to come back.

@sbe-arg sbe-arg merged commit f910cca into marvinpinto:master Jun 12, 2023
@sbe-arg
Copy link
Collaborator

sbe-arg commented Jun 12, 2023

hey @maggie44 I'm a new maintainer I can merge prs. https://github.com/marvinpinto/actions/actions/runs/5248984690
The tests after merge where broken can you open a new pr to address these ? If I open a pr we get stuck again as I cannot self merge.

all worlflows need actions/checkout and actions/cache bumped to version v3 as v2 uses set-output and node12 wich both are deprecated
https://github.com/marvinpinto/actions/tree/master/.github/workflows

@sbe-arg
Copy link
Collaborator

sbe-arg commented Jun 12, 2023

or anyone else that might want to open the pr tag me, ill review and merge asap

@Enase
Copy link
Collaborator

Enase commented Jun 12, 2023

@sbe-arg As I understand, commitlint fails because of commit message. Any ideas of how to fix? force push? O_o

@Enase
Copy link
Collaborator

Enase commented Jun 12, 2023

@sbe-arg take a look https://github.com/marvinpinto/actions/pull/642/files, I will describe the details

@bbimber
Copy link

bbimber commented Aug 10, 2023

@sbe-arg or others: thank you for those who updated this. However, I am missing something. This was merged and the change are in this monorepo (marvinpinto/actions). However, the auto-generated repo does not have those changes:

https://github.com/marvinpinto/action-automatic-releases
https://github.com/marvinpinto/action-automatic-releases/blob/latest/action.yml

My code is pointing to "uses: "marvinpinto/action-automatic-releases@latest"

Is there a way to use a version of this with the updated code?

Thanks in advance for any help.

@sbe-arg
Copy link
Collaborator

sbe-arg commented Aug 10, 2023

The problem is the credentials that replicate the code builds are expired/invalid and only @marvinpinto can recreate them.

If anyone wants to build and open prs in the other repo ill peer review and merge.

Since this blocker I have moved my workflows to this action https://github.com/marketplace/actions/simple-tags-and-releases

Hard to maintain this project without the keys or admin repo access.

@bbimber
Copy link

bbimber commented Aug 10, 2023

@sbe-arg: ok, thanks. does simple-tags-and-releases have any ability to delete an existing tag? the main reason we've been using this is to auto-generate a 'latest' tag, overwriting the previous one.

@sbe-arg
Copy link
Collaborator

sbe-arg commented Aug 10, 2023

What do you mean deleting a tag? Are you referring updating a release as latest release if so, yes or are you talking about git tags?
The simple action won't make changes in the repo if a git tag already exists as git tags should be immutable when possible.

@bbimber
Copy link

bbimber commented Aug 10, 2023

The first use case on the examples: https://github.com/marketplace/actions/automatic-releases

@sbe-arg
Copy link
Collaborator

sbe-arg commented Aug 11, 2023

Not yet but probably is easy work on the prerrelease front as the github cli auto manages the latest tag

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

Successfully merging this pull request may close these issues.

set-output is deprecated Move to node 16