olafurpg / setup-scala

GitHub Action to install any version of Java (GraalVM, Java 8, Java 11, Java 14, ...) via Jabba. Works for any JVM language including Java, Scala and Kotlin.
MIT License
168 stars 30 forks source link

Action does not work due to changes to set-env command #31

Closed gabro closed 3 years ago

gabro commented 3 years ago

This action stopped working with

Error: Unable to process command '::set-env name=CI,::true' successfully. Error: The set-env command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the ACTIONS_ALLOW_UNSECURE_COMMANDS environment variable to true. For more information see: github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands

Example in the wild https://github.com/scalameta/munit/pull/255/checks

The underlying reason is that the published version does not use the updated @actions/core dependency which fixes the exportVariable command to be compliant with the new restrictions.

Since dependabot already took care of updating the dependency, this should just be a matter of releasing v11 and update the downstream projects

gabro commented 3 years ago

Nevermind, this was already included in v10 and I hadn't realized