Fix template variables in pass-job-outputs.md (#39698)
This commit is contained in:
@@ -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"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user