You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hugoalh.GitHubActionsToolkit/module/step-summary.psm1
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Function Add-StepSummary {
24
24
)
25
25
Process {
26
26
If (![System.IO.Path]::IsPathFullyQualified($Env:GITHUB_STEP_SUMMARY)) {
27
-
Write-Error-Message 'Unable to write the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined!'-Category 'ResourceUnavailable'
27
+
Write-Error-Message 'Unable to write the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined or not contain a valid file path!'-Category 'ResourceUnavailable'
If (![System.IO.Path]::IsPathFullyQualified($Env:GITHUB_STEP_SUMMARY)) {
225
-
Write-Error-Message 'Unable to get the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined!'-Category 'ResourceUnavailable'
225
+
Write-Error-Message 'Unable to get the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined or not contain a valid file path!'-Category 'ResourceUnavailable'
226
226
Return
227
227
}
228
228
Switch ($PSCmdlet.ParameterSetName) {
@@ -252,7 +252,7 @@ Function Remove-StepSummary {
252
252
[OutputType([Void])]
253
253
Param ()
254
254
If (![System.IO.Path]::IsPathFullyQualified($Env:GITHUB_STEP_SUMMARY)) {
255
-
Write-Error-Message 'Unable to remove the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined!'-Category 'ResourceUnavailable'
255
+
Write-Error-Message 'Unable to remove the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined or not contain a valid file path!'-Category 'ResourceUnavailable'
If (![System.IO.Path]::IsPathFullyQualified($Env:GITHUB_STEP_SUMMARY)) {
294
-
Write-Error-Message 'Unable to write the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined!'-Category 'ResourceUnavailable'
294
+
Write-Error-Message 'Unable to write the GitHub Actions step summary: Environment path `GITHUB_STEP_SUMMARY` is not defined or not contain a valid file path!'-Category 'ResourceUnavailable'
Copy file name to clipboardExpand all lines: hugoalh.GitHubActionsToolkit/module/utility.psm1
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,8 @@ Function Get-WebhookEventPayload {
72
72
Param (
73
73
[Alias('ToHashtable')][Switch]$AsHashtable
74
74
)
75
-
If ([String]::IsNullOrEmpty($Env:GITHUB_EVENT_PATH)) {
76
-
Write-Error-Message 'Unable to get the GitHub Actions webhook event payload: Environment path `GITHUB_EVENT_PATH` is not defined!'-Category 'ResourceUnavailable'
75
+
If ([System.IO.Path]::IsPathFullyQualified($Env:GITHUB_EVENT_PATH)) {
76
+
Write-Error-Message 'Unable to get the GitHub Actions webhook event payload: Environment path `GITHUB_EVENT_PATH` is not defined or not contain a valid file path!'-Category 'ResourceUnavailable'
If ([String]::IsNullOrEmpty((Get-Content-LiteralPath "Env:\$EnvironmentPath"))) {
100
+
If ([String]::IsNullOrEmpty((Get-Content-LiteralPath "Env:\$EnvironmentPath"-ErrorAction 'SilentlyContinue'))) {
101
101
Write-Error-Message "Unable to get the GitHub Actions workflow run URI: Environment path ``$EnvironmentPath`` is not defined!"-Category 'ResourceUnavailable'
0 commit comments