We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50140b commit b48e5cfCopy full SHA for b48e5cf
1 file changed
cli/action.yml
@@ -99,7 +99,7 @@ runs:
99
fi
100
101
set +e
102
- output=$(slack $args 2>&1)
+ output=$(slack $args 2>&1 | tee /dev/stderr)
103
exit_code=$?
104
set -e
105
@@ -139,10 +139,10 @@ runs:
139
}
140
141
Write-Output "DEBUG: Running: slack $args"
142
- $output = slack $args.Split(' ') 2>&1 | Out-String
+ $outputFile = New-TemporaryFile
143
+ slack $args.Split(' ') 2>&1 | Tee-Object -FilePath $outputFile.FullName
144
$exit_code = $LASTEXITCODE
-
145
- Write-Output $output
+ $output = Get-Content $outputFile.FullName -Raw
146
147
"ok=$( if ($exit_code -eq 0) { 'true' } else { 'false' } )" >> $env:GITHUB_OUTPUT
148
"time=$([DateTimeOffset]::UtcNow.ToUnixTimeSeconds())" >> $env:GITHUB_OUTPUT
0 commit comments