Skip to content

Warning due to set-output command deprecation #393

Description

@mattjohnsonpint

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

Activity

  1. mattjohnsonpint commented on Oct 13, 2022

    @mattjohnsonpint
    Author

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

  2. panticmilos commented on Oct 14, 2022

    @panticmilos
    Contributor

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

  3. dmitry-shibanov commented on Oct 18, 2022

    @dmitry-shibanov
    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 ?

  4. mattjohnsonpint commented on Oct 18, 2022

    @mattjohnsonpint
    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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions