File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -146,14 +146,22 @@ jobs:
146146 run : |
147147 Import-Module ./lib/GitHubActionsCore -Force
148148 Set-ActionOutput testout testval
149+ Set-ActionOutput testout-multiline "testval`n new line `n 3rd line"
149150 - name : Set-ActionOutput test (assert)
150151 uses : ./
152+ env :
153+ testout_output : ${{ steps.Set-ActionOutput.outputs.testout }}
154+ testout_multiline_output : ${{ steps.Set-ActionOutput.outputs.testout-multiline }}
151155 with :
152156 script : |
153- $output = '${{ steps.Set-ActionOutput.outputs.testout }}'
157+ $output = $env:testout_output
154158 if ($output -cne 'testval') {
155159 throw "unexpected: Set-ActionOutput failed.`n$output"
156160 }
161+ $output = $env:testout_multiline_output
162+ if ($output -cne "testval`n new line `n 3rd line") {
163+ throw "unexpected: Set-ActionOutput failed.`n$output"
164+ }
157165
158166 # Add-ActionPath
159167 - name : Add-ActionPath test (act)
You can’t perform that action at this time.
0 commit comments