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

Deprecation Warning Output from GitHub Actions #959

Closed
mcichoski opened this issue Oct 12, 2022 · 15 comments · Fixed by Azure/k8s-bake#78
Closed

Deprecation Warning Output from GitHub Actions #959

mcichoski opened this issue Oct 12, 2022 · 15 comments · Fixed by Azure/k8s-bake#78

Comments

@mcichoski
Copy link

Behaviour

Warning: 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/

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/

As per https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Steps to reproduce this Issue

  1. use actions/checkout@v3 to checkout a repository
@cyhcyh
Copy link

cyhcyh commented Oct 13, 2022

Behaviour

Warning: 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/

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/

As per https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Steps to reproduce this Issue

  1. use actions/checkout@v3 to checkout a repository

I'm using github pages. The github-pages[bot] use actions/checkout@v2 automatically, I don't know how to change that.

@rentziass
Copy link
Member

Hi @cyhcyh, this is expected as we're beginning to deprecate those workflow and started updating actions with a fix. We're back-porting that fix to checkout@v2 shortly to solve this for people that don't have control over the version of checkout that is being used, I'll report here as soon as that's done!

@cyhcyh
Copy link

cyhcyh commented Oct 13, 2022

Hi @cyhcyh, this is expected as we're beginning to deprecate those workflow and started updating actions with a fix. We're back-porting that fix to checkout@v2 shortly to solve this for people that don't have control over the version of checkout that is being used, I'll report here as soon as that's done!

That's great! Thank you!

@rentziass
Copy link
Member

checkout@v2 is now pointing to v2.5.0 and warnings about workflow commands being deprecated should not happen anymore 🎉 Please do let me know if that is not the case!

@davetapley
Copy link

@rentziass still seeing this:

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, actions/checkout, actions/upload-artifact, actions/checkout, actions/checkout

I even tried being explicit with uses: actions/checkout@v2.5.0, but seeing the same. Any ideas? 🤔

@TWiStErRob
Copy link

@davetapley you need to use 3+ for that: https://github.com/actions/checkout/releases/tag/v3.0.0

2.5.0 was just a maintenance release for those who are still on v2 as far as I understand it.

@TWiStErRob
Copy link

As I understand this is now fixed for both

@rentziass close as completed?

@rentziass
Copy link
Member

That's correct, thanks for the help @TWiStErRob! Closing now.

Yikun added a commit to apache/spark that referenced this issue Oct 21, 2022
### What changes were proposed in this pull request?
Upgrade action/checkout to v3 (point ot v3.1 now).

### Why are the changes needed?
- https://github.com/actions/checkout/releases/tag/v3.1.0 cleanup "[The 'set-output' command is deprecated and will be disabled soon.](actions/checkout#959 (comment))"
- https://github.com/actions/checkout/releases/tag/v3.0.0 since v3, use the node 16 to cleanup "[Node.js 12 actions are deprecated](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/)"

According to actions/checkout#959 (comment), v2.5 also address 'set-output' warning, but only v3 support node 16, so we upgrade to v3.1 rather than v2.5

### Does this PR introduce _any_ user-facing change?
No, dev only

### How was this patch tested?
CI passed

Closes #38322 from Yikun/checkout-v3.

Authored-by: Yikun Jiang <yikunkero@gmail.com>
Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
@theofficialgman
Copy link

@rentziass I'm still getting this warning from action/checkout v2.5.0

@TWiStErRob
Copy link

@theofficialgman I think you're better off creating a new issue with detail (screenshot, link, yml, logs).

@jespertheend
Copy link

I can confirm v2.5.0 still seems to trigger the deprecation warning. Upgrading to v3.1.0 fixed it for me though.

@annaesvensson
Copy link

I am seeing the same issue in our repository. With checkout@v2 the deprecation warnings are there, after switching to checkout@v3 the warnings are gone. Upgrading to v3 fixed it for us.

@MikeMcC399
Copy link

@davetapley

There are two different deprecation warning messages.

The original one from this issue was about save-state and set-output which @rentziass wrote is fixed for actions/checkout@v2 and actions/checkout@v3.

The other deprecation warning message "Node.js 12 actions are deprecated." mentioned by @davetapley is not fixed in actions/checkout@v2.

actions/checkout@v2 runs under node12 as can be seen by

checkout/action.yml

Lines 74 to 77 in e2f20e6

runs:
using: node12
main: dist/index.js
post: dist/index.js
pointed to by https://github.com/actions/checkout/tree/v2

So, if you want to stop the "Node.js 12 actions are deprecated." warning from appearing, you need to update to actions/checkout@v3. @annaesvensson already wrote about this. The above is just an explanation for it.

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this issue Dec 12, 2022
### What changes were proposed in this pull request?
Upgrade action/checkout to v3 (point ot v3.1 now).

### Why are the changes needed?
- https://github.com/actions/checkout/releases/tag/v3.1.0 cleanup "[The 'set-output' command is deprecated and will be disabled soon.](actions/checkout#959 (comment))"
- https://github.com/actions/checkout/releases/tag/v3.0.0 since v3, use the node 16 to cleanup "[Node.js 12 actions are deprecated](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/)"

According to actions/checkout#959 (comment), v2.5 also address 'set-output' warning, but only v3 support node 16, so we upgrade to v3.1 rather than v2.5

### Does this PR introduce _any_ user-facing change?
No, dev only

### How was this patch tested?
CI passed

Closes apache#38322 from Yikun/checkout-v3.

Authored-by: Yikun Jiang <yikunkero@gmail.com>
Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
@tal-lederman-dy
Copy link

tal-lederman-dy commented Mar 6, 2023

I'm using actions/checkout@v3.3.0, but still getting the same warning:
Warning: 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/

@MikeMcC399
Copy link

MikeMcC399 commented Mar 6, 2023

@tal-lederman-dy

I'm using actions/checkout@v3.3.0, but still getting the same warning

Since this issue was already resolved in actions/checkout@v3 it is mostly likely that your problem has another origin. This could be from a step in the workflow or from calling another GitHub action.

I suggest to re-run your action with ACTIONS_STEP_DEBUG set true (see https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) to get a better idea about where the warning might be coming from.

Here is an example log output from using an older version of another action:

::set-output name=dashboardUrl::
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/``

cktaylor added a commit to nikogura/vault-authenticator that referenced this issue Mar 17, 2023
## Description

Support for Ubuntu 18 in Github Actions is deprecated and will be removed altogether in April 2023 - so this PR updates the CI workflow to us Ubuntu 22 - an LTS release with several more years of support at minimum.

This change also updates the use of `actions/checkout` to `@v3` - which addresses a deprecation warning around an outdated Node version usage under-the-hood.

## Related links

- https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/
- actions/checkout#959
cktaylor added a commit to scribd/terraform-s3-rbac that referenced this issue Mar 17, 2023
## Description

Support for Ubuntu 18 in Github Actions is deprecated and will be removed altogether in April 2023 - so this PR updates the CI workflow to us Ubuntu 22 - an LTS release with several more years of support at minimum.

This change also updates the use of `actions/checkout` to `@v3` - which addresses a deprecation warning around an outdated Node version usage under-the-hood.

## Related links

- https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/
- actions/checkout#959
lukepayyapilli pushed a commit to scribd/terraform-s3-rbac that referenced this issue Mar 22, 2023
## Description

Support for Ubuntu 18 in Github Actions is deprecated and will be removed altogether in April 2023 - so this PR updates the CI workflow to us Ubuntu 22 - an LTS release with several more years of support at minimum.

This change also updates the use of `actions/checkout` to `@v3` - which addresses a deprecation warning around an outdated Node version usage under-the-hood.

## Related links

- https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/
- actions/checkout#959
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 a pull request may close this issue.

10 participants