Releases: hugoalh/github-actions-core-powershell
Releases · hugoalh/github-actions-core-powershell
0.5.0
🔦 Spotlight
Artifact, Cache, & Tool Cache
Previously, if need to manage artifact, cache, and/or tool cache, multiple steps are require to create in the workflow, which maybe cause issues if user forgot to update the require values between different versions, from now on these are controllable in the same step via the NodeJS wrapper APIs.
🧪 Experimental: This is in testing, maybe available in the latest version and/or future version..
Changeable Prefix
In order to avoid name conflicts that maybe occur when different members in the session have the same name, this module is now officially support to change function noun prefix during using Import-Module:
Import-Module -Name 'hugoalh.GitHubActionsToolkit' -Prefix 'GitHubActions' -Scope 'Local'- ADD: Added ability to change function noun prefix (default to
GitHubActions) - ADD: Added new functions:
Add-GitHubActionsStepSummaryHeaderAdd-GitHubActionsStepSummaryImageAdd-GitHubActionsStepSummaryLinkAdd-GitHubActionsStepSummarySubscriptTextAdd-GitHubActionsStepSummarySuperscriptTextExpand-GitHubActionsToolCacheCompressedFileExport-GitHubActionsArtifactFind-GitHubActionsToolCacheGet-GitHubActionsWorkflowRunUriImport-GitHubActionsArtifactInvoke-GitHubActionsToolCacheToolDownloaderRegister-GitHubActionsToolCacheDirectoryRegister-GitHubActionsToolCacheFileRestore-GitHubActionsCacheSave-GitHubActionsCacheTest-GitHubActionsNodeJsEnvironmentWrite-GitHubActionsRaw
- ADD: Added NodeJS wrapper API dependencies:
@actions/artifact@actions/cache@actions/core@actions/tool-cache
- CHANGE: Changed most of the non mandatory parameters' position to "Named"
- CHANGE: Fixed function
Add-GitHubActionsProblemMatchermaybe cause issues on resolving paths - CHANGE: Fixed function
Get-GitHubActionsIsDebugmaybe report status incorrectly - CHANGE: Fixed functions common parameters support (as hidden)
- CHANGE: Fixed functions that depend on environment variables maybe raise meanless errors, and maybe cause more issues due to missing require environment variables
- CHANGE: Fixed functions
Disable-GitHubActionsProcessingCommandsandEnable-GitHubActionsProcessingCommandsmaybe cause issues by some special end tokens - CHANGE: Fixed functions
Get-GitHubActionsInputandGet-GitHubActionsStatemaybe output weird result - CHANGE: Fixed module sometimes ignore PowerShell error action preference
- CHANGE: Fixed some of the parameters' validation that incorrectly accept invalid values and reject valid values
- CHANGE: Formatted all of the codes with improved PowerShell code guideline
- CHANGE: Functions
Add-GitHubActionsPATHandSet-GitHubActionsEnvironmentVariable(previously namedAdd-GitHubActionsEnvironmentVariable) are now have correct behaviour to add/set in both scope (i.e.: "Current" and "Subsequent"), equivalent to GitHub Actions official toolkit behaviour, modify this behaviour via parameterScope - CHANGE: Improved function
Add-GitHubActionsSecretMaskchunk method - CHANGE: Improved function
Test-GitHubActionsEnvironment, and wide range of usage to early raise issues while execute in incorrect environment, also with mandatory message support (parameterMandatoryMessage) - CHANGE: Improved some of the functions pipeline behaviour
- CHANGE: Refactored all of the codes to module system
- CHANGE: Renamed function
Add-GitHubActionsEnvironmentVariabletoSet-GitHubActionsEnvironmentVariableto avoid confusion - CHANGE: Renamed function
Get-GitHubActionsOidcTokentoGet-GitHubActionsOpenIdConnectToken(old name as alias) - CHANGE: Renamed parameter
RequireFailMessagetoMandatoryMessageto avoid confusion - CHANGE: Word "Mandatory" is used instead of word "Require" and/or "Required"
- REMOVE: Removed functions aliases that noun start with
GHActions(replaced by changeable prefix) - REMOVE: Removed some of the parameters' aliases to avoid confusion
0.4.1
0.4.0
- ADD: Added new function
Get-GitHubActionsOidcToken⚠ Important: This is in experimental!
- CHANGE: Fixed parameters' validations not well implemented at functions
Set-GitHubActionsOutputandSet-GitHubActionsState - CHANGE: Improved error messages, should be less confused than before
- CHANGE: Improved chunks' splitting at function
Add-GitHubActionsSecretMaskto improve support on non ASCII characters
0.3.4
0.3.3
0.3.2
0.3.1
- ADD: Added new function
Get-GitHubActionsStepSummary - ADD: Added new parameter
LiteralPathfor functionAdd-GitHubActionsProblemMatcher - ADD: Added new parameter
NoNewLinefor functionsAdd-GitHubActionsStepSummaryandSet-GitHubActionsStepSummary - CHANGE: Fixed issues on function
Remove-GitHubActionsStepSummary - CHANGE: Improved efficiency on file system I/O
0.3.0
- ADD: Added ability to pipeline parameters to most of the public functions
- ADD: Added ability to skip validation when adding PATH for function
Add-GitHubActionsPATHvia parameterNoValidator - ADD: Added depth to parse webhook event payload for function
Get-GitHubActionsWebhookEventPayloadvia parameterDepth - ADD: Added help URI for module and public functions (which lead to the official wiki)
- ADD: Added new functions:
Add-GitHubActionsStepSummaryRemove-GitHubActionsStepSummarySet-GitHubActionsStepSummaryTest-GitHubActionsEnvironment
- ADD: Added support of summary (via functions
Add-GitHubActionsStepSummary,Remove-GitHubActionsStepSummary, andSet-GitHubActionsStepSummary) - ADD: Changed function
Write-GitHubActionsCommandfrom private to public to service fresh and new commands and/or experimental commands which this module has not included yet - CHANGE: Fixed display issues on functions' output type
- CHANGE: Fixed enumerate issues when getting webhook event payload
- CHANGE: Fixed function
Write-GitHubActionsFailparameters, should equivalent to functionWrite-GitHubActionsErrorparameters - CHANGE: Fixed issues and improved on parameters' validations
- CHANGE: Fixed issues when adding environment variables
- CHANGE: Fixed issues when adding problem matchers
- CHANGE: Fixed output issues on pipeline functions
- CHANGE: Fixed some grammar mistakes
- CHANGE: Improved commands efficiency
- CHANGE: Improved commands formatting efficiency
- CHANGE: Improved restrictions for functions
Disable-GitHubActionsProcessingCommandsandEnable-GitHubActionsProcessingCommands - CHANGE: Redesigned functions
Get-GitHubActionsInputandGet-GitHubActionsState:- Fixed issues when getting some of the inputs
- No longer support wildcard characters due to the redesign changes
- Support of name prefix and suffix, no longer duplicated namespaces
- CHANGE: Reduced file system I/O times
- CHANGE: Renamed function
Add-GitHubActionsSecretMaskparameterSmarttoWithChunksfor better identification - CHANGE: Renamed functions (old names now are as alias):
Disable-GitHubActionsEchoCommandtoDisable-GitHubActionsEchoingCommandsDisable-GitHubActionsProcessingCommandtoDisable-GitHubActionsProcessingCommandsEnable-GitHubActionsEchoCommandtoEnable-GitHubActionsEchoingCommandsEnable-GitHubActionsProcessingCommandtoEnable-GitHubActionsProcessingCommands
- CHANGE: Renamed module prefix from
GHActionstoGitHubActions(old name now is as alias) - REMOVE: Removed flag and support of common parameters (pointless in the GitHub Actions environment)
0.2.0
- ADD: Added function output type attributes
- ADD: Added new functions:
Add-GHActionsProblemMatcherRemove-GHActionsProblemMatcherWrite-GHActionsAnnotation
- ADD: Added parameter
AsHashTablefor functionGet-GHActionsWebhookEventPayload - ADD: Added "Requires" attributes
- ADD: Added smart mode for function
Add-GHActionsSecretMaskto use improved method to well make a secret will get masked from the log - ADD: Functions
Set-GHActionsOutputandSet-GHActionsStatenow also accept hashtable via parameterInputObject - CHANGE: Fixed
$nulldetermine issues - CHANGE: Fixed
/__+/in functionsGet-GHActionsInputandGet-GHActionsState - CHANGE: Function
Add-GHActionsEnvironmentVariableparameterInputObjectnow only accept hashtable - CHANGE: Function
Disable-GHActionsProcessingCommandnow accept custom end token via parameterEndToken - CHANGE: Function
Write-GHActionsFailparameterMessageno longer optional - CHANGE: Functions
Write-GHActionsError,Write-GHActionsFail,Write-GHActionsNotice, andWrite-GHActionsWarningno longer accept value from pipeline - CHANGE: Improved enumeration
- CHANGE: Improved error message
- CHANGE: Improved function
Add-GHActionsEnvironmentVariableparameter set - CHANGE: Improved internal functions
- CHANGE: Renamed functions:
Disable-GHActionsCommandEchotoDisable-GHActionsEchoCommandEnable-GHActionsCommandEchotoEnable-GHActionsEchoCommand
- CHANGE: Renamed parameter
ColtoColumn - REMOVE: Removed function
Invoke-GHActionsScriptGroup - REMOVE: Removed JSON depth restriction for function
Get-GHActionsWebhookEventPayload