Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.
This repository has been archived by the owner on May 8, 2024. It is now read-only.

The set-env command is deprecated and will be disabled soon. #10

Closed
sblantipodi opened this issue Oct 12, 2020 · 2 comments
Closed

The set-env command is deprecated and will be disabled soon. #10

sblantipodi opened this issue Oct 12, 2020 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sblantipodi
Copy link
Contributor

Using the adopt install jdk action returns a warning

      - name: Set up AdoptOpenJDK 15
        uses: AdoptOpenJDK/install-jdk@v1
        with:
          version: '15'
          architecture: x64

this is the warning with some errors.

Run AdoptOpenJDK/install-jdk@v1
C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\5dc80748-a307-4a7c-b574-02c961aae42d', 'D:\a\_temp\temp_746465718')"
Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Warning: The `set-env` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

probably you know it but an issue is just a reminder :)
thank you for your great product.

@TheMrMilchmann TheMrMilchmann self-assigned this Oct 12, 2020
@TheMrMilchmann TheMrMilchmann added this to the 1.1.1 milestone Oct 12, 2020
@TheMrMilchmann
Copy link
Collaborator

Thanks for the report! This should already be fixed on master by e063617. I'll validate the fix tomorrow (13.10) and publish 1.1.1.

@TheMrMilchmann TheMrMilchmann added the bug Something isn't working label Oct 12, 2020
@TheMrMilchmann
Copy link
Collaborator

e063617 only partially fixed the issue as it only upgraded the dependency. I rebuilt the action in 8f7e2a2 and just released 1.1.1 with the fix. If you are using AdoptOpenJDK/install-jdk@v1, you should not see this deprecation warning anymore going forward!

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

No branches or pull requests

2 participants