@@ -104,10 +104,10 @@ You can use the `set-output` command in your workflow to set the same value:
104104``` yaml copy
105105 - name : Set selected color
106106 run : echo '::set-output name=SELECTED_COLOR::green'
107- id : random- color-generator
107+ id : color-selector
108108 - name : Get color
109109{% raw %}
110- run : echo "The selected color is ${{ steps.random- color-generator .outputs.SELECTED_COLOR }}"
110+ run : echo "The selected color is ${{ steps.color-selector .outputs.SELECTED_COLOR }}"
111111{% endraw %}
112112```
113113
@@ -118,10 +118,10 @@ You can use the `set-output` command in your workflow to set the same value:
118118``` yaml copy
119119 - name : Set selected color
120120 run : Write-Output "::set-output name=SELECTED_COLOR::green"
121- id : random- color-generator
121+ id : color-selector
122122 - name : Get color
123123{% raw %}
124- run : Write-Output "The selected color is ${{ steps.random- color-generator .outputs.SELECTED_COLOR }}"
124+ run : Write-Output "The selected color is ${{ steps.color-selector .outputs.SELECTED_COLOR }}"
125125{% endraw %}
126126```
127127
@@ -509,8 +509,8 @@ jobs:
509509 GENERATED_SECRET=$((RANDOM))
510510 echo "::add-mask::$GENERATED_SECRET"
511511 SECRET_HANDLE=$(secret-store store-secret "$GENERATED_SECRET"){% ifversion actions-save-state-set-output-envs %}
512- echo "handle=$secret_handle " >> "$GITHUB_OUTPUT"{% else %}
513- echo "::set-output name=handle::$secret_handle "{% endif %}
512+ echo "handle=$SECRET_HANDLE " >> "$GITHUB_OUTPUT"{% else %}
513+ echo "::set-output name=handle::$SECRET_HANDLE "{% endif %}
514514 secret-consumer:
515515 runs-on: macos-latest
516516 needs: secret-generator
@@ -921,11 +921,11 @@ This example demonstrates how to set the `SELECTED_COLOR` output parameter and l
921921
922922` ` ` yaml copy
923923 - name: Set color
924- id: random- color-generator
924+ id: color-selector
925925 run: echo "SELECTED_COLOR=green" >> "$GITHUB_OUTPUT"
926926 - name: Get color
927927 env:{% raw %}
928- SELECTED_COLOR: ${{ steps.random- color-generator .outputs.SELECTED_COLOR }}{% endraw %}
928+ SELECTED_COLOR: ${{ steps.color-selector .outputs.SELECTED_COLOR }}{% endraw %}
929929 run: echo "The selected color is $SELECTED_COLOR"
930930` ` `
931931
@@ -937,12 +937,12 @@ This example demonstrates how to set the `SELECTED_COLOR` output parameter and l
937937
938938` ` ` yaml copy
939939 - name: Set color
940- id: random- color-generator
940+ id: color-selector
941941 run: |
942942 "SELECTED_COLOR=green" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
943943 - name: Get color
944- env:{% raw %}
945- SELECTED_COLOR: ${{ steps.random- color-generator .outputs.SELECTED_COLOR }}{% endraw %}
944+ env:{% raw %}
945+ SELECTED_COLOR: ${{ steps.color-selector .outputs.SELECTED_COLOR }}{% endraw %}
946946 run: Write-Output "The selected color is $env:SELECTED_COLOR"
947947` ` `
948948
0 commit comments