Skip to content

Warning due to set-output command deprecation #393

@mattjohnsonpint

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

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