Skip to content

Commit faaa985

Browse files
authored
[ci releases] Fix warning about set-output being deprecated (#7315)
Use GITHUB_OUTPUT instead as github docs recommend.
1 parent 7142fa1 commit faaa985

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/create_release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ jobs:
7171
tar -czf $TARBALL binaryen-$VERSION
7272
# on Windows, MSYS2 will strip the carriage return from CMake output
7373
cmake -E sha256sum $TARBALL > $SHASUM
74-
echo "::set-output name=tarball::$TARBALL"
75-
echo "::set-output name=shasum::$SHASUM"
74+
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
75+
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
7676
7777
- name: archive-arm64
7878
id: archive-arm64
@@ -87,19 +87,19 @@ jobs:
8787
tar -czf $TARBALL binaryen-$VERSION
8888
# on Windows, MSYS2 will strip the carriage return from CMake output
8989
cmake -E sha256sum $TARBALL > $SHASUM
90-
echo "::set-output name=tarball::$TARBALL"
91-
echo "::set-output name=shasum::$SHASUM"
90+
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
91+
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
9292
if: matrix.os == 'macos-latest'
9393

9494
- name: upload tarball
9595
uses: softprops/action-gh-release@v1
9696
with:
9797
draft: true
9898
files: |
99-
${{ steps.archive.outputs.tarball }}
100-
${{ steps.archive.outputs.shasum }}
101-
${{ steps.archive-arm64.outputs.tarball }}
102-
${{ steps.archive-arm64.outputs.shasum }}
99+
${{ steps.archive.outputs.TARBALL }}
100+
${{ steps.archive.outputs.SHASUM }}
101+
${{ steps.archive-arm64.outputs.TARBALL }}
102+
${{ steps.archive-arm64.outputs.SHASUM }}
103103
104104
# Build with gcc 6.3 and run tests on Alpine Linux (inside chroot).
105105
# Note: Alpine uses musl libc.
@@ -161,16 +161,16 @@ jobs:
161161
mv install binaryen-$VERSION
162162
tar -czf $TARBALL binaryen-$VERSION
163163
cmake -E sha256sum $TARBALL > $SHASUM
164-
echo "::set-output name=tarball::$TARBALL"
165-
echo "::set-output name=shasum::$SHASUM"
164+
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
165+
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
166166
167167
- name: upload tarball
168168
uses: softprops/action-gh-release@v1
169169
with:
170170
draft: true
171171
files: |
172-
${{ steps.archive.outputs.tarball }}
173-
${{ steps.archive.outputs.shasum }}
172+
${{ steps.archive.outputs.TARBALL }}
173+
${{ steps.archive.outputs.SHASUM }}
174174
175175
# Build using Emscripten to JavaScript+WebAssembly.
176176
build-node:
@@ -227,13 +227,13 @@ jobs:
227227
cp out/bin/wasm-opt* binaryen-$VERSION/
228228
tar -czf $TARBALL binaryen-$VERSION
229229
cmake -E sha256sum $TARBALL > $SHASUM
230-
echo "::set-output name=tarball::$TARBALL"
231-
echo "::set-output name=shasum::$SHASUM"
230+
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
231+
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
232232
233233
- name: upload tarball
234234
uses: softprops/action-gh-release@v1
235235
with:
236236
draft: true
237237
files: |
238-
${{ steps.archive.outputs.tarball }}
239-
${{ steps.archive.outputs.shasum }}
238+
${{ steps.archive.outputs.TARBALL }}
239+
${{ steps.archive.outputs.SHASUM }}

0 commit comments

Comments
 (0)