Abstract
A helper function for failing on error only if strict mode is enabled. This is intended only for CI environments testing Actions themselves.
Fetches the executable at the URL determined by the source-*
inputs and
other facts, chmod
s it, and returns the path to the executable on disk.
Abstract
mainThe main execution phase.
Abstract
postThe post execution phase.
Attach a file to the diagnostics data in error conditions.
The file at location
doesn't need to exist when stapleFile is called.
If the file doesn't exist or is unreadable when trying to staple the attachments, the JS error will be stored in a context value at staple_failure_{name}
.
If the file is readable, the file's contents will be stored in a context value at staple_value_{name}
.
Unpacks the closure returned by fetchArtifact()
, imports the
contents into the Nix store, and returns the path of the executable at
/nix/store/STORE_PATH/bin/${bin}
.
Execute the Action as defined.