From faaa98509e55d19fb97e851f8b4b20ee5d08ebb0 Mon Sep 17 00:00:00 2001 From: mcbarton Date: Thu, 27 Feb 2025 18:53:10 +0000 Subject: [PATCH] [ci releases] Fix warning about set-output being deprecated (#7315) Use GITHUB_OUTPUT instead as github docs recommend. --- .github/workflows/create_release.yml | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index f81a5f0b3eb..a71ad6da9d2 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -71,8 +71,8 @@ jobs: tar -czf $TARBALL binaryen-$VERSION # on Windows, MSYS2 will strip the carriage return from CMake output cmake -E sha256sum $TARBALL > $SHASUM - echo "::set-output name=tarball::$TARBALL" - echo "::set-output name=shasum::$SHASUM" + echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT + echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT - name: archive-arm64 id: archive-arm64 @@ -87,8 +87,8 @@ jobs: tar -czf $TARBALL binaryen-$VERSION # on Windows, MSYS2 will strip the carriage return from CMake output cmake -E sha256sum $TARBALL > $SHASUM - echo "::set-output name=tarball::$TARBALL" - echo "::set-output name=shasum::$SHASUM" + echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT + echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT if: matrix.os == 'macos-latest' - name: upload tarball @@ -96,10 +96,10 @@ jobs: with: draft: true files: | - ${{ steps.archive.outputs.tarball }} - ${{ steps.archive.outputs.shasum }} - ${{ steps.archive-arm64.outputs.tarball }} - ${{ steps.archive-arm64.outputs.shasum }} + ${{ steps.archive.outputs.TARBALL }} + ${{ steps.archive.outputs.SHASUM }} + ${{ steps.archive-arm64.outputs.TARBALL }} + ${{ steps.archive-arm64.outputs.SHASUM }} # Build with gcc 6.3 and run tests on Alpine Linux (inside chroot). # Note: Alpine uses musl libc. @@ -161,16 +161,16 @@ jobs: mv install binaryen-$VERSION tar -czf $TARBALL binaryen-$VERSION cmake -E sha256sum $TARBALL > $SHASUM - echo "::set-output name=tarball::$TARBALL" - echo "::set-output name=shasum::$SHASUM" + echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT + echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT - name: upload tarball uses: softprops/action-gh-release@v1 with: draft: true files: | - ${{ steps.archive.outputs.tarball }} - ${{ steps.archive.outputs.shasum }} + ${{ steps.archive.outputs.TARBALL }} + ${{ steps.archive.outputs.SHASUM }} # Build using Emscripten to JavaScript+WebAssembly. build-node: @@ -227,13 +227,13 @@ jobs: cp out/bin/wasm-opt* binaryen-$VERSION/ tar -czf $TARBALL binaryen-$VERSION cmake -E sha256sum $TARBALL > $SHASUM - echo "::set-output name=tarball::$TARBALL" - echo "::set-output name=shasum::$SHASUM" + echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT + echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT - name: upload tarball uses: softprops/action-gh-release@v1 with: draft: true files: | - ${{ steps.archive.outputs.tarball }} - ${{ steps.archive.outputs.shasum }} + ${{ steps.archive.outputs.TARBALL }} + ${{ steps.archive.outputs.SHASUM }}