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

Warning from the set-output command when running Actions #578

Closed
1 of 5 tasks
zayn7lie opened this issue Dec 30, 2022 · 3 comments
Closed
1 of 5 tasks

Warning from the set-output command when running Actions #578

zayn7lie opened this issue Dec 30, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@zayn7lie
Copy link

zayn7lie commented Dec 30, 2022

Description:
When I set up my python environment in Actions, it reveals a warning:

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/

This is my code:

- name: Set up Python 3.10
      uses: actions/setup-python@v3
      with:
        python-version: "3.10"

Action version:
Not sure, the newest

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type: Not sure

  • Hosted
  • Self-hosted

Tools version:
Current: python 3.10
I also test 3.11 and the warning is the same.

Repro steps:
Just run the code in Actions:

- name: Set up Python 3.10
      uses: actions/setup-python@v3
      with:
        python-version: "3.10"

Expected behavior:

Run actions/setup-python@v3
Successfully setup CPython (3.10.9)

Actual behavior:

Run actions/setup-python@v3
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/
Successfully setup CPython (3.10.9)
@zayn7lie zayn7lie added bug Something isn't working needs triage labels Dec 30, 2022
@swt2c
Copy link

swt2c commented Dec 31, 2022

Seems it's fixed in v4.

@zayn7lie
Copy link
Author

zayn7lie commented Dec 31, 2022

Seems it's fixed in v4.

Thanks a lot, it works.
Sorry for interruption.

@dmitry-shibanov
Copy link
Contributor

Hello @zayn7lie. Thank you for your report. The issue was fixed in v4 tag. I think you can switch to use actions/setup-python@v4 because it does not contain any breaking changes for your use case.

For now I'm going to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants