This project uses the default Prettier code style for TypeScript code.
The default value for the `trailingComma` configuration setting has been changed from `es5` to `all` in the Prettier
3.0.0 release. This caused the code to no longer be compliant with the new default Prettier code formatting style. The
formatting is hereby updated to the new Prettier style.
Previously, the action could only install Task when the runner had an x86-64 or i386 architecture.
Since the GitHub-hosted runners are currently all x86-64, that is sufficient for most users. However, it is also
possible to use GitHub actions with self-hosted runners of other architectures. Task builds are available for more
architectures, so the action's code unnecessarily limited its utility.
Support for all architectures with available builds is hereby added.
In order to provide some possibility of automatic support for additional builds that may become available in the future,
if the action code does not contain a mapped value for the host architecture, the value from Node.js is used verbatim.
Because the mapping between the architecture value provided by Node.js to the filename suffix used in the Task build
archives is a bit confusing, I added mapping entries for all suffixes, even in the cases where the two values are equal.
Co-authored-by: Luca Bianconi <71259950+Bikappa@users.noreply.github.com>
The update to 4.4.2 brings increased type strictness. Previously, exceptions were used in some catch blocks based on an
assumption of their type. But exceptions can have any type and that now results in errors (TS2345, TS2571). This is fixed
by narrowing the exceptions to the expected type before using them as such.
The default value of the version input is defined in the action metadata, so having another default setting in the code
is purely redundant and doubles the maintenance effort required on every major release of Task (note that they already
went out of sync).
Change project name to "arduino/setup-task"
The Task documentation consistently refers to the tool as "Task". Taskfile is the term used for Task's configuration file.
This action is setting up the Task tool, not setting up the Task configuration file, so "arduino/setup-task" is more
appropriate than "arduino/setup-taskfile".
In order to be recognized by GitHub's automatic license detection system, the license file must contain only the exact
license text, which can be sourced from choosealicense.com. Please do not modify this file in any way.