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