1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Fix template variables in pass-job-outputs.md (#39698)

This commit is contained in:
Andy Brody
2025-08-07 11:27:35 -04:00
committed by GitHub
parent 5f66400982
commit f4236da361

View File

@@ -23,8 +23,8 @@ redirect_from:
job1:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.step1.outputs.test }}
output2: ${{ steps.step2.outputs.test }}
output1: {% raw %}${{ steps.step1.outputs.test }}{% endraw %}
output2: {% raw %}${{ steps.step2.outputs.test }}{% endraw %}
steps:
- id: step1
run: echo "test=hello" >> "$GITHUB_OUTPUT"
@@ -52,8 +52,8 @@ redirect_from:
needs: job1
steps:
- env:
OUTPUT1: ${{needs.job1.outputs.output1}}
OUTPUT2: ${{needs.job1.outputs.output2}}
OUTPUT1: {% raw %}${{needs.job1.outputs.output1}}{% endraw %}
OUTPUT2: {% raw %}${{needs.job1.outputs.output2}}{% endraw %}
run: echo "$OUTPUT1 $OUTPUT2"
```