File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,23 @@ param()
44$DebugPreference = ' SilentlyContinue'
55$VerbosePreference = ' SilentlyContinue'
66
7+ $result = (Get-GitHubOutput ).result
8+ if (-not $result ) {
9+ return
10+ }
11+
712Write-Host ' ┏━━━━━┫ GitHub-Script ┣━━━━━┓'
813
914LogGroup ' - Outputs' {
1015 if ([string ]::IsNullOrEmpty($env: GITHUB_ACTION )) {
11- Write-Warning ' Outputs cannot be accessed as the step has no ID.'
16+ Write-GitHubWarning ' Outputs cannot be accessed as the step has no ID.'
1217 }
1318
1419 if (-not (Test-Path - Path $env: GITHUB_OUTPUT )) {
1520 Write-Warning " File not found: $env: GITHUB_OUTPUT "
1621 }
1722
18- ( Get-GitHubOutput ). result | Format-List
23+ $ result | Format-List
1924 Write-Host " Access outputs using `$ {{ fromJson(steps.$env: GITHUB_ACTION .outputs.result).<output-name> }}"
2025}
2126
You can’t perform that action at this time.
0 commit comments