Skip to content

Commit 514ecec

Browse files
authored
Replace deprecated command with environment file (#2429)
Signed-off-by: jongwooo <[email protected]>
1 parent 128b212 commit 514ecec

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
file=$(ls)
132132
sha=$(sha256sum $file | awk '{ print $1 }')
133133
echo "Computed sha256: $sha for $file"
134-
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
134+
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
135135
shell: bash
136136
id: sha
137137
name: Compute SHA256
@@ -140,8 +140,8 @@ jobs:
140140
file=$(ls)
141141
sha=$(sha256sum $file | awk '{ print $1 }')
142142
echo "Computed sha256: $sha for $file"
143-
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
144-
echo "::set-output name=sha256::$sha"
143+
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
144+
echo "sha256=$sha" >> $GITHUB_OUTPUT
145145
shell: bash
146146
id: sha_noexternals
147147
name: Compute SHA256
@@ -150,8 +150,8 @@ jobs:
150150
file=$(ls)
151151
sha=$(sha256sum $file | awk '{ print $1 }')
152152
echo "Computed sha256: $sha for $file"
153-
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
154-
echo "::set-output name=sha256::$sha"
153+
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
154+
echo "sha256=$sha" >> $GITHUB_OUTPUT
155155
shell: bash
156156
id: sha_noruntime
157157
name: Compute SHA256
@@ -160,8 +160,8 @@ jobs:
160160
file=$(ls)
161161
sha=$(sha256sum $file | awk '{ print $1 }')
162162
echo "Computed sha256: $sha for $file"
163-
echo "::set-output name=${{matrix.runtime}}-sha256::$sha"
164-
echo "::set-output name=sha256::$sha"
163+
echo "${{matrix.runtime}}-sha256=$sha" >> $GITHUB_OUTPUT
164+
echo "sha256=$sha" >> $GITHUB_OUTPUT
165165
shell: bash
166166
id: sha_noruntime_noexternals
167167
name: Compute SHA256

src/Test/TestData/conditional_composite_action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ runs:
2525
- run: exit ${{ inputs.exit-code }}
2626
shell: bash
2727

28-
- run: echo "::set-output name=default::true"
28+
- run: echo "default=true" >> $GITHUB_OUTPUT
2929
id: default-conditional
3030
shell: bash
3131

32-
- run: echo "::set-output name=success::true"
32+
- run: echo "success=true" >> $GITHUB_OUTPUT
3333
id: success-conditional
3434
shell: bash
3535
if: success()
3636

37-
- run: echo "::set-output name=failure::true"
37+
- run: echo "failure=true" >> $GITHUB_OUTPUT
3838
id: failure-conditional
3939
shell: bash
4040
if: failure()
4141

42-
- run: echo "::set-output name=always::true"
42+
- run: echo "always=true" >> $GITHUB_OUTPUT
4343
id: always-conditional
4444
shell: bash
4545
if: always()
4646

4747
- run: echo "failed"
4848
shell: bash
49-
if: ${{ inputs.exit-code == 1 && failure() }}
49+
if: ${{ inputs.exit-code == 1 && failure() }}

0 commit comments

Comments
 (0)