Skip to content

v3.0.0

Compare
Choose a tag to compare
@release-drafter release-drafter released this 23 Feb 21:00

New features

This release brings a lot of new features that are available in the Actions runtime, mostly by wrapping actions/toolkit.

  • tools.inputs is a Proxy instance that lets you access the inputs of your action:
uses: JasonEtco/example-action@master
with:
  foo: bar

You can access those using tools.inputs:

console.log(tools.inputs.foo) // -> 'bar'
  • Toolkit.run will now call core.setFailed upon failure, which sets an annotation to expose the error message more clearly in the GitHub Actions UI.

Breaking changes

  • Toolkit#config has been removed. You should probably use tools.inputs instead!
  • tools.arguments has been removed. You should probably use tools.inputs instead!

What’s Changed