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

Fix save-state, set-output and Node.js 12 actions deprecation warnings #361

Closed
wants to merge 3 commits into from

Conversation

SamuelMwangiW
Copy link
Contributor

::save-state and ::set-output in Github actions have been deprecated. The first commit replaces with Github's recommended Environment files.

The second commit upgrades the actions actions/checkout@v2 and docker/build-push-action@v2 that are both using the aforementioned deprecated ::save-state and ::set-output as well being based on Node.js 12 that's also deprecated.

By merging this PR, the annotations in the Summary page of the previous run should be fixed; See sample run https://github.com/SamuelMwangiW/expose/actions/runs/3850300033

This leads to the following warning being displayed in the action run summary.

> The `save-state` 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/
The actions actions/checkout@v2 and docker/build-push-action@v2 both use Node.js 12 that has been deprecated
leading to the warning being shown in the action run Summary Annotations section

>Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, docker/build-push-action@v2
@what-the-diff
Copy link

what-the-diff bot commented Jan 5, 2023

  • The version is now stored in the environment variable VERSION
  • We use a newer checkout action (v3)

@SamuelMwangiW SamuelMwangiW deleted the fix/set-output branch February 8, 2024 06:48
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

Successfully merging this pull request may close these issues.

1 participant