@@ -150,6 +150,7 @@ function Add-GHActionsEnvironmentVariable {
150
150
}) -join " `n " ) " - Encoding utf8NoBOM
151
151
}
152
152
}
153
+ Set-Alias - Name ' Add-GHActionsEnv' - Value ' Add-GHActionsEnvironmentVariable' - Option ReadOnly - Scope ' Local'
153
154
<#
154
155
. SYNOPSIS
155
156
GitHub Actions - Add PATH
@@ -219,19 +220,22 @@ function Add-GHActionsSecretMask {
219
220
}
220
221
end {}
221
222
}
223
+ Set-Alias - Name ' Add-GHActionsMask' - Value ' Add-GHActionsSecretMask' - Option ReadOnly - Scope ' Local'
224
+ Set-Alias - Name ' Add-GHActionsSecret' - Value ' Add-GHActionsSecretMask' - Option ReadOnly - Scope ' Local'
222
225
<#
223
226
. SYNOPSIS
224
- GitHub Actions - Disable Command Echo
227
+ GitHub Actions - Disable Echo Command
225
228
. DESCRIPTION
226
229
Disable echoing of workflow commands, the workflow run's log will not show the command itself; A workflow command is echoed if there are any errors processing the command; Secret `ACTIONS_STEP_DEBUG` will ignore this.
227
230
. OUTPUTS
228
231
Void
229
232
#>
230
- function Disable-GHActionsCommandEcho {
233
+ function Disable-GHActionsEchoCommand {
231
234
[CmdletBinding ()][OutputType ([void ])]
232
235
param ()
233
236
Write-GHActionsCommand - Command ' echo' - Message ' off'
234
237
}
238
+ Set-Alias - Name ' Disable-GHActionsCommandEcho' - Value ' Disable-GHActionsEchoCommand' - Option ReadOnly - Scope ' Local'
235
239
<#
236
240
. SYNOPSIS
237
241
GitHub Actions - Disable Processing Command
@@ -248,19 +252,21 @@ function Disable-GHActionsProcessingCommand {
248
252
Write-GHActionsCommand - Command ' stop-commands' - Message $EndToken
249
253
return $EndToken
250
254
}
255
+ Set-Alias - Name ' Disable-GHActionsCommandProcessing' - Value ' Disable-GHActionsProcessingCommand' - Option ReadOnly - Scope ' Local'
251
256
<#
252
257
. SYNOPSIS
253
- GitHub Actions - Enable Command Echo
258
+ GitHub Actions - Enable Echo Command
254
259
. DESCRIPTION
255
260
Enable echoing of workflow commands, the workflow run's log will show the command itself; The `add-mask`, `debug`, `warning`, and `error` commands do not support echoing because their outputs are already echoed to the log; Secret `ACTIONS_STEP_DEBUG` will ignore this.
256
261
. OUTPUTS
257
262
Void
258
263
#>
259
- function Enable-GHActionsCommandEcho {
264
+ function Enable-GHActionsEchoCommand {
260
265
[CmdletBinding ()][OutputType ([void ])]
261
266
param ()
262
267
Write-GHActionsCommand - Command ' echo' - Message ' on'
263
268
}
269
+ Set-Alias - Name ' Enable-GHActionsCommandEcho' - Value ' Enable-GHActionsEchoCommand' - Option ReadOnly - Scope ' Local'
264
270
<#
265
271
. SYNOPSIS
266
272
GitHub Actions - Enable Processing Command
@@ -278,6 +284,7 @@ function Enable-GHActionsProcessingCommand {
278
284
)
279
285
Write-GHActionsCommand - Command $EndToken - Message ' '
280
286
}
287
+ Set-Alias - Name ' Enable-GHActionsCommandProcessing' - Value ' Enable-GHActionsProcessingCommand' - Option ReadOnly - Scope ' Local'
281
288
<#
282
289
. SYNOPSIS
283
290
GitHub Actions - Enter Log Group
@@ -295,6 +302,7 @@ function Enter-GHActionsLogGroup {
295
302
)
296
303
Write-GHActionsCommand - Command ' group' - Message $Title
297
304
}
305
+ Set-Alias - Name ' Enter-GHActionsGroup' - Value ' Enter-GHActionsLogGroup' - Option ReadOnly - Scope ' Local'
298
306
<#
299
307
. SYNOPSIS
300
308
GitHub Actions - Exit Log Group
@@ -308,6 +316,7 @@ function Exit-GHActionsLogGroup {
308
316
param ()
309
317
Write-GHActionsCommand - Command ' endgroup' - Message ' '
310
318
}
319
+ Set-Alias - Name ' Exit-GHActionsGroup' - Value ' Exit-GHActionsLogGroup' - Option ReadOnly - Scope ' Local'
311
320
<#
312
321
. SYNOPSIS
313
322
GitHub Actions - Get Input
@@ -431,6 +440,8 @@ function Get-GHActionsWebhookEventPayload {
431
440
)
432
441
return (Get-Content - Path $env: GITHUB_EVENT_PATH - Raw - Encoding utf8NoBOM | ConvertFrom-Json - AsHashtable:$AsHashTable )
433
442
}
443
+ Set-Alias - Name ' Get-GHActionsEvent' - Value ' Get-GHActionsWebhookEventPayload' - Option ReadOnly - Scope ' Local'
444
+ Set-Alias - Name ' Get-GHActionsPayload' - Value ' Get-GHActionsWebhookEventPayload' - Option ReadOnly - Scope ' Local'
434
445
function Remove-GHActionsProblemMatcher {
435
446
[CmdletBinding ()][OutputType ([void ])]
436
447
param (
@@ -445,16 +456,6 @@ function Remove-GHActionsProblemMatcher {
445
456
end {}
446
457
}
447
458
<#
448
- function Save-GHActionsCache {
449
- [CmdletBinding()][OutputType([void])]
450
- param (
451
- [Parameter(Mandatory = $true, Position = 0)][ValidateLength(1,512)][ValidatePattern('^[\da-z._-]+$')][string]$Key,
452
- [Parameter(Mandatory = $true, Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)][SupportsWildcards()][string[]]
453
- $Path
454
- )
455
- }
456
- #>
457
- <#
458
459
. SYNOPSIS
459
460
GitHub Actions - Set Output
460
461
. DESCRIPTION
@@ -660,6 +661,7 @@ function Write-GHActionsNotice {
660
661
)
661
662
Write-GHActionsAnnotation - Type ' Notice' - Message $Message - File $File - Line $Line - Col $Col - EndLine $EndLine - EndColumn $EndColumn - Title $Title
662
663
}
664
+ Set-Alias - Name ' Write-GHActionsNote' - Value ' Write-GHActionsNotice' - Option ReadOnly - Scope ' Local'
663
665
<#
664
666
. SYNOPSIS
665
667
GitHub Actions - Write Warning
@@ -695,4 +697,43 @@ function Write-GHActionsWarning {
695
697
)
696
698
Write-GHActionsAnnotation - Type ' Warning' - Message $Message - File $File - Line $Line - Col $Col - EndLine $EndLine - EndColumn $EndColumn - Title $Title
697
699
}
698
- Export-ModuleMember - Function Add-GHActionsEnvironmentVariable , Add-GHActionsPATH , Add-GHActionsProblemMatcher , Add-GHActionsSecretMask , Disable-GHActionsCommandEcho , Disable-GHActionsProcessingCommand , Enable-GHActionsCommandEcho , Enable-GHActionsProcessingCommand , Enter-GHActionsLogGroup , Exit-GHActionsLogGroup , Get-GHActionsInput , Get-GHActionsIsDebug , Get-GHActionsState , Get-GHActionsWebhookEventPayload , Remove-GHActionsProblemMatcher , Set-GHActionsOutput , Set-GHActionsState , Write-GHActionsAnnotation , Write-GHActionsDebug , Write-GHActionsError , Write-GHActionsFail , Write-GHActionsNotice , Write-GHActionsWarning
700
+ Set-Alias - Name ' Write-GHActionsWarn' - Value ' Write-GHActionsWarning' - Option ReadOnly - Scope ' Local'
701
+ Export-ModuleMember - Function @ (
702
+ ' Add-GHActionsEnvironmentVariable' ,
703
+ ' Add-GHActionsPATH' ,
704
+ ' Add-GHActionsProblemMatcher' ,
705
+ ' Add-GHActionsSecretMask' ,
706
+ ' Disable-GHActionsEchoCommand' ,
707
+ ' Disable-GHActionsProcessingCommand' ,
708
+ ' Enable-GHActionsEchoCommand' ,
709
+ ' Enable-GHActionsProcessingCommand' ,
710
+ ' Enter-GHActionsLogGroup' ,
711
+ ' Exit-GHActionsLogGroup' ,
712
+ ' Get-GHActionsInput' ,
713
+ ' Get-GHActionsIsDebug' ,
714
+ ' Get-GHActionsState' ,
715
+ ' Get-GHActionsWebhookEventPayload' ,
716
+ ' Remove-GHActionsProblemMatcher' ,
717
+ ' Set-GHActionsOutput' ,
718
+ ' Set-GHActionsState' ,
719
+ ' Write-GHActionsAnnotation' ,
720
+ ' Write-GHActionsDebug' ,
721
+ ' Write-GHActionsError' ,
722
+ ' Write-GHActionsFail' ,
723
+ ' Write-GHActionsNotice' ,
724
+ ' Write-GHActionsWarning'
725
+ ) - Alias @ (
726
+ ' Add-GHActionsEnv' ,
727
+ ' Add-GHActionsMask' ,
728
+ ' Add-GHActionsSecret' ,
729
+ ' Disable-GHActionsCommandEcho' ,
730
+ ' Disable-GHActionsCommandProcessing' ,
731
+ ' Enable-GHActionsCommandEcho' ,
732
+ ' Enable-GHActionsCommandProcessing' ,
733
+ ' Enter-GHActionsGroup' ,
734
+ ' Exit-GHActionsGroup' ,
735
+ ' Get-GHActionsEvent' ,
736
+ ' Get-GHActionsPayload' ,
737
+ ' Write-GHActionsNote' ,
738
+ ' Write-GHActionsWarn'
739
+ )
0 commit comments