Core
class Core
Methods
Gets whether Actions Step Debug is on or not.
Writes debug message to user log.
Adds an warning issue.
Adds an error issue.
Sets env variable for this action and future actions in the job.
Registers a secret which will get masked from logs.
Prepends inputPath to the PATH (for this action and future actions).
Gets the value of an input. The value is also trimmed.
Sets the value of an output.
Sets the action status to failed.
Saves state for current action, the state can only be retrieved by this action's post job execution.
Gets the value of an state set by this action's main execution.
Details
at line 12
bool
isDebug()
Gets whether Actions Step Debug is on or not.
at line 22
void
debug(string $message)
Writes debug message to user log.
at line 32
void
warning(string $message)
Adds an warning issue.
at line 42
void
error(string $message)
Adds an error issue.
at line 53
void
exportVariable(string $name, string $value)
Sets env variable for this action and future actions in the job.
at line 63
void
setSecret(string $secret)
Registers a secret which will get masked from logs.
at line 71
void
addPath(string $inputPath)
Prepends inputPath to the PATH (for this action and future actions).
at line 82
string
getInput(string $name, bool $required = false)
Gets the value of an input. The value is also trimmed.
at line 99
void
setOutput(string $name, string $value)
Sets the value of an output.
at line 110
void
setFailed(string $message)
Sets the action status to failed.
When the action exits it will be with an exit code of 1.
at line 121
void
saveState(string $name, string $value)
Saves state for current action, the state can only be retrieved by this action's post job execution.
at line 131
string
getState(string $name)
Gets the value of an state set by this action's main execution.