1
0
mirror of synced 2025-12-19 18:10:59 -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: job1:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
output1: ${{ steps.step1.outputs.test }} output1: {% raw %}${{ steps.step1.outputs.test }}{% endraw %}
output2: ${{ steps.step2.outputs.test }} output2: {% raw %}${{ steps.step2.outputs.test }}{% endraw %}
steps: steps:
- id: step1 - id: step1
run: echo "test=hello" >> "$GITHUB_OUTPUT" run: echo "test=hello" >> "$GITHUB_OUTPUT"
@@ -52,8 +52,8 @@ redirect_from:
needs: job1 needs: job1
steps: steps:
- env: - env:
OUTPUT1: ${{needs.job1.outputs.output1}} OUTPUT1: {% raw %}${{needs.job1.outputs.output1}}{% endraw %}
OUTPUT2: ${{needs.job1.outputs.output2}} OUTPUT2: {% raw %}${{needs.job1.outputs.output2}}{% endraw %}
run: echo "$OUTPUT1 $OUTPUT2" run: echo "$OUTPUT1 $OUTPUT2"
``` ```