Skip to content

Commit 9a1d249

Browse files
committed
20230628A
1 parent 01d56d9 commit 9a1d249

File tree

10 files changed

+153
-127
lines changed

10 files changed

+153
-127
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body:
1818
description: "What versions are affected? Versions must be listed as supported in the Security Policy (file: `SECURITY.md`)."
1919
multiple: true
2020
options:
21+
- "v1.6.0-beta.1"
2122
- "v1.5.0"
2223
- "v1.4.1"
2324
- "v1.4.0"

SECURITY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
1414
| **Versions** | **Status** | **Target - GitHub Actions Runner** | **Target - PowerShell** | **Target - NodeJS (Wrapper API)** | **Target - NPM (Wrapper API)** |
1515
|:-:|:-:|:-:|:-:|:-:|:-:|
16-
| v1.5.X | L | >= v2.303.0 | >= v7.2.0 | >= v14.15.0 | *N/A* |
17-
| v1.4.X | L | >= v2.303.0 | >= v7.2.0 | >= v14.15.0 | *N/A* |
16+
| v1.6.X | L | >= v2.303.0 | >= v7.2.0 | >= v14.15.0 | *N/A* |
17+
| v1.5.X || >= v2.303.0 | >= v7.2.0 | >= v14.15.0 | *N/A* |
18+
| v1.4.X || >= v2.303.0 | >= v7.2.0 | >= v14.15.0 | *N/A* |
1819
| v1.3.X | ❌{🐛🧓} | *Unspecified* | >= v7.2.0 | >= v14.15.0 | >= v6.14.8 |
1920
| v1.2.0 \~ v1.3.1 | ❌{🐛🧓} | *Unspecified* | >= v7.2.0 | >= v14.15.0 | *N/A* |
2021
| < v1.2.0 | ❌{🐛🧓} | *Unspecified* | >= v7.2.0 | >= v14.15.0 | >= v6.14.8 |

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'hugoalh.GitHubActionsToolkit.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.5.0'
6+
ModuleVersion = '1.6.0'
77

88
# Supported PSEditions
99
# CompatiblePSEditions = @()
@@ -72,10 +72,10 @@
7272
'Add-StepSummarySuperscriptText',
7373
'ConvertFrom-CsvM',
7474
'ConvertFrom-CsvS',
75-
'Disable-EchoingCommands',
76-
'Disable-ProcessingCommands',
77-
'Enable-EchoingCommands',
78-
'Enable-ProcessingCommands',
75+
'Disable-StdOutCommandEcho',
76+
'Disable-StdOutCommandProcess',
77+
'Enable-StdOutCommandEcho',
78+
'Enable-StdOutCommandProcess',
7979
'Enter-LogGroup',
8080
'Exit-LogGroup',
8181
'Expand-ToolCacheCompressedFile',
@@ -139,9 +139,11 @@
139139
'Disable-EchoCommand',
140140
'Disable-EchoCommands',
141141
'Disable-EchoingCommand',
142+
'Disable-EchoingCommands',
142143
'Disable-ProcessCommand',
143144
'Disable-ProcessCommands',
144145
'Disable-ProcessingCommand',
146+
'Disable-ProcessingCommands',
145147
'Enable-CommandEcho',
146148
'Enable-CommandEchoing',
147149
'Enable-CommandProcess',
@@ -153,9 +155,11 @@
153155
'Enable-EchoCommand',
154156
'Enable-EchoCommands',
155157
'Enable-EchoingCommand',
158+
'Enable-EchoingCommands',
156159
'Enable-ProcessCommand',
157160
'Enable-ProcessCommands',
158161
'Enable-ProcessingCommand',
162+
'Enable-ProcessingCommands',
159163
'Enter-Group',
160164
'Exit-Group',
161165
'Expand-ToolCacheArchive',
@@ -173,6 +177,8 @@
173177
'Import-Cache',
174178
'Restore-Artifact',
175179
'Restore-State',
180+
'Resume-CommandProcess',
181+
'Resume-StdOutCommandProcess',
176182
'Save-Artifact',
177183
'Save-State',
178184
'Set-Env',
@@ -193,6 +199,8 @@
193199
'Start-ProcessCommands',
194200
'Start-ProcessingCommand',
195201
'Start-ProcessingCommands',
202+
'Start-StdOutCommandEcho',
203+
'Start-StdOutCommandProcess',
196204
'Stop-CommandEcho',
197205
'Stop-CommandEchoing',
198206
'Stop-CommandProcess',
@@ -209,6 +217,10 @@
209217
'Stop-ProcessCommands',
210218
'Stop-ProcessingCommand',
211219
'Stop-ProcessingCommands',
220+
'Stop-StdOutCommandEcho',
221+
'Stop-StdOutCommandProcess',
222+
'Suspend-CommandProcess',
223+
'Suspend-StdOutCommandProcess',
212224
'Write-Command',
213225
'Write-Note',
214226
'Write-Warn'
@@ -254,7 +266,7 @@
254266
ReleaseNotes = '(Please visit https://github.com/hugoalh-studio/ghactions-toolkit-powershell/releases.)'
255267

256268
# Prerelease string of this module
257-
# Prerelease = ''
269+
Prerelease = 'beta1'
258270

259271
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
260272
RequireLicenseAcceptance = $False

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Function Export-Artifact {
3434
[Parameter(Mandatory = $True, ParameterSetName = 'LiteralPath', ValueFromPipelineByPropertyName = $True)][Alias('LiteralFile', 'LiteralFiles', 'LiteralPaths', 'LP', 'PSPath', 'PSPaths')][String[]]$LiteralPath,
3535
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateScript({ [System.IO.Path]::IsPathRooted($_) -and (Test-Path -LiteralPath $_ -PathType 'Container') }, ErrorMessage = '`{0}` is not an exist and valid directory!')][Alias('Root')][String]$BaseRoot = $Env:GITHUB_WORKSPACE,
3636
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('ContinueOnError')][Switch]$ContinueOnIssue,
37-
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('RetentionDay')][UInt16]$RetentionTime
37+
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, [Int16]::MaxValue)][Alias('RetentionDay')][Int16]$RetentionTime
3838
)
3939
Process {
4040
Switch ($PSCmdlet.ParameterSetName) {

hugoalh.GitHubActionsToolkit/module/command-control.psm1

Lines changed: 122 additions & 110 deletions
Large diffs are not rendered by default.

hugoalh.GitHubActionsToolkit/module/log.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Set-Alias -Name 'Write-Note' -Value 'Write-Notice' -Option 'ReadOnly' -Scope 'Lo
278278
.SYNOPSIS
279279
GitHub Actions - Write Raw
280280
.DESCRIPTION
281-
Print anything to the log without accidentally execute any commands.
281+
Print anything to the log without accidentally execute any stdout command.
282282
.PARAMETER InputObject
283283
Item that need to log.
284284
.PARAMETER GroupTitle

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper",
3-
"version": "1.5.0",
3+
"version": "1.6.0-beta.1",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

hugoalh.GitHubActionsToolkit/module/tool-cache.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Function Expand-ToolCacheCompressedFile {
8181
}
8282
}
8383
Set-Alias -Name 'Expand-ToolCacheArchive' -Value 'Expand-ToolCacheCompressedFile' -Option 'ReadOnly' -Scope 'Local'
84-
Set-Alias -Name 'Expand-ToolCacheCompressedArchive' -Value 'Expand-ToolCacheCompressedFile' -Option 'ReadOnly' -Scope 'Local'
85-
Set-Alias -Name 'Expand-ToolCacheFile' -Value 'Expand-ToolCacheCompressedFile' -Option 'ReadOnly' -Scope 'Local'
84+
Set-Alias -Name 'Expand-ToolCacheCompressedArchive' -Value 'Expand-ToolCacheCompressedFile' -Option 'ReadOnly' -Scope 'Local'# Deprecated.
85+
Set-Alias -Name 'Expand-ToolCacheFile' -Value 'Expand-ToolCacheCompressedFile' -Option 'ReadOnly' -Scope 'Local'# Deprecated.
8686
<#
8787
.SYNOPSIS
8888
GitHub Actions - Find Tool Cache
@@ -103,7 +103,7 @@ Function Find-ToolCache {
103103
[OutputType(([String], [String[]]))]
104104
Param (
105105
[Parameter(Mandatory = $True, Position = 0, ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True)][Alias('ToolName')][String]$Name,
106-
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('V', 'Ver')][SemVer]$Version,
106+
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('V', 'Ver')][String]$Version,
107107
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
108108
)
109109
Process {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper",
3-
"version": "1.5.0",
3+
"version": "1.6.0-beta.1",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

0 commit comments

Comments
 (0)