Skip to content

Commit 516e32a

Browse files
committed
Temp fix #54
1 parent 0faece9 commit 516e32a

File tree

10 files changed

+34
-3
lines changed

10 files changed

+34
-3
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.2.3"
2122
- "v1.2.2"
2223
- "v1.2.1"
2324
- "v1.2.0"

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 1 addition & 1 deletion
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.2.2'
6+
ModuleVersion = '1.2.3'
77

88
# Supported PSEditions
99
# CompatiblePSEditions = @()

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ Function Export-Artifact {
3939
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('RetentionDay')][Byte]$RetentionTime
4040
)
4141
Begin {
42+
<# [DISABLED] Issue in GitHub Actions runner
4243
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
44+
#>
4345
If ($NoOperation) {
4446
Write-Error -Message 'Unable to get GitHub Actions artifact resources!' -Category 'ResourceUnavailable'
4547
}
@@ -107,7 +109,9 @@ Function Import-Artifact {
107109
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Dest', 'Path', 'Target')][String]$Destination = $Env:GITHUB_WORKSPACE
108110
)
109111
Begin {
112+
<# [DISABLED] Issue in GitHub Actions runner
110113
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
114+
#>
111115
If ($NoOperation) {
112116
Write-Error -Message 'Unable to get GitHub Actions artifact resources!' -Category 'ResourceUnavailable'
113117
}

hugoalh.GitHubActionsToolkit/module/cache.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ Function Restore-Cache {
4343
[Parameter(ValueFromPipelineByPropertyName = $True)][Switch]$LookUp
4444
)
4545
Begin {
46+
<# [DISABLED] Issue in GitHub Actions runner
4647
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
48+
#>
4749
If ($NoOperation) {
4850
Write-Error -Message 'Unable to get GitHub Actions cache resources!' -Category 'ResourceUnavailable'
4951
}
@@ -109,7 +111,9 @@ Function Save-Cache {
109111
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 16)][Alias('Concurrency')][Byte]$UploadConcurrency
110112
)
111113
Begin {
114+
<# [DISABLED] Issue in GitHub Actions runner
112115
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
116+
#>
113117
If ($NoOperation) {
114118
Write-Error -Message 'Unable to get GitHub Actions cache resources!' -Category 'ResourceUnavailable'
115119
}

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-distribution",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
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/open-id-connect.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Function Get-OpenIdConnectToken {
2828
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('NodeJs', 'NodeJsWrapper', 'UseNodeJs')][Switch]$UseNodeJsWrapper
2929
)
3030
Begin {
31+
<# [DISABLED] Issue in GitHub Actions runner
3132
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -OpenIDConnect)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
33+
#>
3234
If ($NoOperation) {
3335
Write-Error -Message 'Unable to get GitHub Actions OpenID Connect (OIDC) resources!' -Category 'ResourceUnavailable'
3436
}

hugoalh.GitHubActionsToolkit/module/step-summary.psm1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ Function Add-StepSummary {
3131
[Parameter(ValueFromPipelineByPropertyName = $True)][Switch]$NoNewLine
3232
)
3333
Begin {
34+
<# [DISABLED] Issue in GitHub Actions runner
3435
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -StepSummary)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
36+
#>
3537
If ($NoOperation) {
3638
Write-Error -Message 'Unable to get GitHub Actions step summary resources!' -Category 'ResourceUnavailable'
3739
}
@@ -234,10 +236,12 @@ Function Get-StepSummary {
234236
[Parameter(ParameterSetName = 'Content')][Switch]$Raw,
235237
[Parameter(Mandatory = $True, ParameterSetName = 'Sizes')][Alias('Size')][Switch]$Sizes
236238
)
239+
<# [DISABLED] Issue in GitHub Actions runner
237240
If (!(Test-GitHubActionsEnvironment -StepSummary)) {
238241
Write-Error -Message 'Unable to get GitHub Actions step summary resources!' -Category 'ResourceUnavailable'
239242
Return
240243
}
244+
#>
241245
Switch ($PSCmdlet.ParameterSetName) {
242246
'Content' {
243247
Get-Content -LiteralPath $Env:GITHUB_STEP_SUMMARY -Raw:$Raw.IsPresent -Encoding 'UTF8NoBOM' |
@@ -288,7 +292,9 @@ Function Set-StepSummary {
288292
[Switch]$NoNewLine
289293
)
290294
Begin {
295+
<# [DISABLED] Issue in GitHub Actions runner
291296
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -StepSummary)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
297+
#>
292298
If ($NoOperation) {
293299
Write-Error -Message 'Unable to get GitHub Actions step summary resources!' -Category 'ResourceUnavailable'
294300
}

hugoalh.GitHubActionsToolkit/module/tool-cache.psm1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Function Expand-ToolCacheCompressedFile {
3838
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Flags')][String]$Flag
3939
)
4040
Begin {
41+
<# [DISABLED] Issue in GitHub Actions runner
4142
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
43+
#>
4244
If ($NoOperation) {
4345
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
4446
}
@@ -118,7 +120,9 @@ Function Find-ToolCache {
118120
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
119121
)
120122
Begin {
123+
<# [DISABLED] Issue in GitHub Actions runner
121124
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
125+
#>
122126
If ($NoOperation) {
123127
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
124128
}
@@ -170,7 +174,9 @@ Function Invoke-ToolCacheToolDownloader {
170174
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Headers')][Hashtable]$Header
171175
)
172176
Begin {
177+
<# [DISABLED] Issue in GitHub Actions runner
173178
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
179+
#>
174180
If ($NoOperation) {
175181
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
176182
}
@@ -221,7 +227,9 @@ Function Register-ToolCacheDirectory {
221227
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
222228
)
223229
Begin {
230+
<# [DISABLED] Issue in GitHub Actions runner
224231
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
232+
#>
225233
If ($NoOperation) {
226234
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
227235
}
@@ -271,7 +279,9 @@ Function Register-ToolCacheFile {
271279
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
272280
)
273281
Begin {
282+
<# [DISABLED] Issue in GitHub Actions runner
274283
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
284+
#>
275285
If ($NoOperation) {
276286
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
277287
}

hugoalh.GitHubActionsToolkit/module/utility.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ Function Get-WebhookEventPayload {
7676
[UInt16]$Depth,# Deprecated, keep as legacy.
7777
[Switch]$NoEnumerate# Deprecated, keep as legacy.
7878
)
79+
<# [DISABLED] Issue in GitHub Actions runner
7980
If (!(Test-Environment)) {
8081
Write-Error -Message 'Unable to get GitHub Actions resources!' -Category 'ResourceUnavailable'
8182
Return
8283
}
84+
#>
8385
Get-Content -LiteralPath $Env:GITHUB_EVENT_PATH -Raw -Encoding 'UTF8NoBOM' |
8486
ConvertFrom-Json -AsHashtable:$AsHashtable.IsPresent -Depth 100 -NoEnumerate |
8587
Write-Output
@@ -100,10 +102,12 @@ Function Get-WorkflowRunUri {
100102
[CmdletBinding(HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_getgithubactionsworkflowrunuri')]
101103
[OutputType([String])]
102104
Param ()
105+
<# [DISABLED] Issue in GitHub Actions runner
103106
If (!(Test-Environment)) {
104107
Write-Error -Message 'Unable to get GitHub Actions resources!' -Category 'ResourceUnavailable'
105108
Return
106109
}
110+
#>
107111
Write-Output -InputObject "$Env:GITHUB_SERVER_URL/$Env:GITHUB_REPOSITORY/actions/runs/$Env:GITHUB_RUN_ID"
108112
}
109113
Set-Alias -Name 'Get-WorkflowRunUrl' -Value 'Get-WorkflowRunUri' -Option 'ReadOnly' -Scope 'Local'

nodejs-wrapper-source/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-source",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
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)