Skip to content

Commit e100c4d

Browse files
committed
20230207B
1 parent 6c1fbc9 commit e100c4d

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ Import-Module -Name 'hugoalh.GitHubActionsToolkit' -Prefix 'GitHubActions' -Scop
9191
- `Test-GitHubActionsEnvironment`
9292
- `Test-GitHubActionsNodeJsEnvironment`
9393
- `Write-GitHubActionsAnnotation`
94-
- `Write-GitHubActionsCommand`
9594
- `Write-GitHubActionsDebug`
9695
- `Write-GitHubActionsError`
9796
- `Write-GitHubActionsFail`

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Function Export-Artifact {
3939
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('RetentionDay')][Byte]$RetentionTime
4040
)
4141
Begin {
42-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, only stop this function but not others.
42+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
4343
If ($NoOperation) {
4444
Write-Error -Message 'Unable to get GitHub Actions artifact resources!' -Category 'ResourceUnavailable'
4545
}
@@ -107,7 +107,7 @@ Function Import-Artifact {
107107
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Dest', 'Path', 'Target')][String]$Destination = $Env:GITHUB_WORKSPACE
108108
)
109109
Begin {
110-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, only stop this function but not others.
110+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Artifact)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
111111
If ($NoOperation) {
112112
Write-Error -Message 'Unable to get GitHub Actions artifact resources!' -Category 'ResourceUnavailable'
113113
}

hugoalh.GitHubActionsToolkit/module/cache.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Function Restore-Cache {
4242
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 360)][UInt16]$SegmentTimeout = 60
4343
)
4444
Begin {
45-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, only stop this function but not others.
45+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
4646
If ($NoOperation) {
4747
Write-Error -Message 'Unable to get GitHub Actions cache resources!' -Category 'ResourceUnavailable'
4848
}
@@ -108,7 +108,7 @@ Function Save-Cache {
108108
[Parameter(ValueFromPipelineByPropertyName = $True)][ValidateRange(1, 16)][Alias('Concurrency')][Byte]$UploadConcurrency
109109
)
110110
Begin {
111-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, only stop this function but not others.
111+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -Cache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
112112
If ($NoOperation) {
113113
Write-Error -Message 'Unable to get GitHub Actions cache resources!' -Category 'ResourceUnavailable'
114114
}

hugoalh.GitHubActionsToolkit/module/open-id-connect.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Function Get-OpenIdConnectToken {
2828
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('NodeJs', 'NodeJsWrapper', 'UseNodeJs')][Switch]$UseNodeJsWrapper
2929
)
3030
Begin {
31-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -OpenIDConnect)# When the requirements are not fulfill, only stop this function but not others.
31+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -OpenIDConnect)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
3232
If ($NoOperation) {
3333
Write-Error -Message 'Unable to get GitHub Actions OpenID Connect (OIDC) resources!' -Category 'ResourceUnavailable'
3434
}

hugoalh.GitHubActionsToolkit/module/step-summary.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Function Add-StepSummary {
3131
[Parameter(ValueFromPipelineByPropertyName = $True)][Switch]$NoNewLine
3232
)
3333
Begin {
34-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -StepSummary)# When the requirements are not fulfill, only stop this function but not others.
34+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -StepSummary)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
3535
If ($NoOperation) {
3636
Write-Error -Message 'Unable to get GitHub Actions step summary resources!' -Category 'ResourceUnavailable'
3737
}
@@ -288,7 +288,7 @@ Function Set-StepSummary {
288288
[Switch]$NoNewLine
289289
)
290290
Begin {
291-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -StepSummary)# When the requirements are not fulfill, only stop this function but not others.
291+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -StepSummary)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
292292
If ($NoOperation) {
293293
Write-Error -Message 'Unable to get GitHub Actions step summary resources!' -Category 'ResourceUnavailable'
294294
}

hugoalh.GitHubActionsToolkit/module/tool-cache.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Function Expand-ToolCacheCompressedFile {
3838
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Flags')][String]$Flag
3939
)
4040
Begin {
41-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, only stop this function but not others.
41+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
4242
If ($NoOperation) {
4343
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
4444
}
@@ -118,7 +118,7 @@ Function Find-ToolCache {
118118
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
119119
)
120120
Begin {
121-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, only stop this function but not others.
121+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
122122
If ($NoOperation) {
123123
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
124124
}
@@ -170,7 +170,7 @@ Function Invoke-ToolCacheToolDownloader {
170170
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Headers')][Hashtable]$Header
171171
)
172172
Begin {
173-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, only stop this function but not others.
173+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
174174
If ($NoOperation) {
175175
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
176176
}
@@ -221,7 +221,7 @@ Function Register-ToolCacheDirectory {
221221
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
222222
)
223223
Begin {
224-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, only stop this function but not others.
224+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
225225
If ($NoOperation) {
226226
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
227227
}
@@ -271,7 +271,7 @@ Function Register-ToolCacheFile {
271271
[Parameter(ValueFromPipelineByPropertyName = $True)][Alias('Arch')][String]$Architecture
272272
)
273273
Begin {
274-
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, only stop this function but not others.
274+
[Boolean]$NoOperation = !(Test-GitHubActionsEnvironment -ToolCache)# When the requirements are not fulfill, use this variable to skip this function but keep continue invoke the script.
275275
If ($NoOperation) {
276276
Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable'
277277
}

0 commit comments

Comments
 (0)