GitHubActions (0.7.0)

August 13, 2020 ยท View on GitHub

Supports interacting with Github Actions environment

CmdletSynopsis
Add-ActionPathPrepends path to the PATH (for this action and future actions).
Add-ActionSecretMaskRegisters a secret which will get masked from logs.
Enter-ActionOutputGroupBegin an output group.
Exit-ActionOutputGroupEnd an output group.
Get-ActionContextReturns details of the executing GitHub Workflow assembled from the environment.
Get-ActionInputGets the value of an input. The value is also trimmed.
Get-ActionInputsReturns a map of all the available inputs and their values.
Get-ActionIssueReturns details of the issue associated with the workflow trigger,
including owner and repo name, and the issue (or PR) number.
Get-ActionRepoReturns details of the repository, including owner and repo name.
Invoke-ActionWithinOutputGroupExecutes the argument script block within an output group.
Set-ActionFailedUsed as a shortcut for Write-ActionError and exit 1
Set-ActionOutputSets the value of an output.
Set-ActionVariableSets env variable for this action and future actions in the job.
Write-ActionDebugWrites debug message to user log.
Write-ActionErrorAdds an error issue.
Write-ActionInfoWrites info to log with console.log.
Write-ActionWarningAdds a warning issue.