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 due to set-output command deprecation #393

Closed
mattjohnsonpint opened this issue Oct 13, 2022 · 4 comments
Closed

Warning due to set-output command deprecation #393

mattjohnsonpint opened this issue Oct 13, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mattjohnsonpint
Copy link

Running this action currently gives three warnings:

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/

Debug log from workflow:

Run actions/setup-java@v3
  with:
    distribution: temurin
    java-version: 11
    java-package: jdk
    architecture: x64
    check-latest: false
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
    token: ***
  env:
    DOTNET_CLI_TELEMETRY_OPTOUT: 1
    DOTNET_NOLOGO: 1
::group::Installed distributions
Installed distributions
  ##[debug]isExplicit: 11.0.16-1
  ##[debug]explicit? true
  ##[debug]isExplicit: 17.0.4-1
  ##[debug]explicit? true
  ##[debug]isExplicit: 8.0.345-1
  ##[debug]explicit? true
  Resolved Java 11.0.16+1 from tool-cache
  Setting Java 11.0.16+1 as the default
  
  ::set-output name=distribution::Temurin-Hotspot
  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/
  ##[debug]='Temurin-Hotspot'
  
  ::set-output name=path::/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-1/x64
  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/
  ##[debug]='/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-1/x64'
  
  ::set-output name=version::11.0.16+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/
  ##[debug]='11.0.16+1'
  
  Java configuration:
    Distribution: temurin
    Version: 11.0.16+1
    Path: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-1/x64
  
  ::endgroup::
##[add-matcher]/home/runner/work/_actions/actions/setup-java/v3/.github/java.json
##[debug]Added matchers: 'java'. Problem matchers scan action output for known warning or error strings and report these inline.
Creating settings.xml with server-id: github
Writing to /home/runner/.m2/settings.xml
##[debug]Node Action run completed with exit code 0
##[debug]JAVA_HOME='/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-1/x64'
##[debug]JAVA_HOME_11_X64='/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-1/x64'
##[debug]Finished: run
@mattjohnsonpint
Copy link
Author

Oh, I see now that this was already addressed in #390. I guess I am just waiting for a release then.

@panticmilos
Copy link
Contributor

hi @mattjohnsonpint, we will wait for the release to close this issue.

@dmitry-shibanov
Copy link
Contributor

Hello @mattjohnsonpint. We released a new version of the action with these changes and updated the major tag. Could you please confirm that everything works as expected ?

@mattjohnsonpint
Copy link
Author

Yes, it is working fine now. Thank you!

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