We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11b3ec commit 91b9923Copy full SHA for 91b9923
1 file changed
src/outputs.ps1
@@ -16,19 +16,21 @@ try {
16
Write-Debug "[$scriptName] - ShowRateLimit: $showRateLimit"
17
18
$result = $null
19
+ $hasResult = $false
20
if ($showOutput) {
21
$result = (Get-GitHubOutput).result
- Write-Debug "[$scriptName] - Result: $(-not $result)"
22
+ $hasResult = [bool]$result
23
+ Write-Debug "[$scriptName] - ResultPresent: $hasResult"
24
}
25
- if (-not $result -and -not $showRateLimit) {
26
+ if (-not $hasResult -and -not $showRateLimit) {
27
return
28
29
30
$fenceStart = "┏━━┫ $fenceTitle - Outputs ┣━━━━━┓"
31
Write-Output $fenceStart
32
- if ($result) {
33
+ if ($hasResult) {
34
if ([string]::IsNullOrEmpty($env:GITHUB_ACTION)) {
35
Write-GitHubWarning 'Outputs cannot be accessed as the step has no ID.'
36
0 commit comments