Core functions for setting results, logging, registering secrets and exporting variables across actions
You can use this library to get inputs or set outputs:
const core = ;const myInput = core;// Do stuffcore;
You can also export variables for future steps. Variables get set in the environment.
const core = ;// Do stuffcore;
You can explicitly add items to the path for all remaining steps in a workflow:
const core = ;core;
You should use this library to set the failing exit code for your action:
const core = ;try// Do stuffcatch err// setFailed logs the message and sets a failing exit codecore;
Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the Step Debug Logs.
const core = ;const myInput = core;trycore;if !myInputcore;// Do stuffcatch errcore;
This library can also wrap chunks of output in foldable groups.
const core =// Manually wrap outputcorecore// Wrap an asynchronous function callconst result = await core