v3.0.0
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 callcore.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 usetools.inputs
instead!tools.arguments
has been removed. You should probably usetools.inputs
instead!
What’s Changed
- Allow custom token to be supplied in options (#97) @danez
- Wrap @actions/core and enable new features (#107) @JasonEtco
- Update dependencies (#106) @JasonEtco
- Bump handlebars from 4.1.2 to 4.5.3 (#104) @dependabot