Skip to content

Commit f4236da

Browse files
authored
Fix template variables in pass-job-outputs.md (#39698)
1 parent 5f66400 commit f4236da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/actions/how-tos/write-workflows/choose-what-workflows-do/pass-job-outputs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ redirect_from:
2323
job1:
2424
runs-on: ubuntu-latest
2525
outputs:
26-
output1: ${{ steps.step1.outputs.test }}
27-
output2: ${{ steps.step2.outputs.test }}
26+
output1: {% raw %}${{ steps.step1.outputs.test }}{% endraw %}
27+
output2: {% raw %}${{ steps.step2.outputs.test }}{% endraw %}
2828
steps:
2929
- id: step1
3030
run: echo "test=hello" >> "$GITHUB_OUTPUT"
@@ -52,8 +52,8 @@ redirect_from:
5252
needs: job1
5353
steps:
5454
- env:
55-
OUTPUT1: ${{needs.job1.outputs.output1}}
56-
OUTPUT2: ${{needs.job1.outputs.output2}}
55+
OUTPUT1: {% raw %}${{needs.job1.outputs.output1}}{% endraw %}
56+
OUTPUT2: {% raw %}${{needs.job1.outputs.output2}}{% endraw %}
5757
run: echo "$OUTPUT1 $OUTPUT2"
5858
```
5959

0 commit comments

Comments
 (0)