From b3d5d9ee7aab79c80efd19a34fb564b851aec69e Mon Sep 17 00:00:00 2001 From: William Wong Date: Thu, 19 Sep 2024 23:36:51 -0700 Subject: [PATCH] Move away from set-output --- .github/workflows/daily-release.yaml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/daily-release.yaml b/.github/workflows/daily-release.yaml index 98f543e445..a9946e8190 100644 --- a/.github/workflows/daily-release.yaml +++ b/.github/workflows/daily-release.yaml @@ -87,23 +87,13 @@ jobs: - id: compute_hash name: Compute build metadata run: | - echo "::set-output name=git_short_sha::`echo ${{ github.sha }} | cut -c 1-7`" - echo "::set-output name=package_version::`tar -xOzf botframework-webchat-4*.tgz package/package.json | jq -r '.version'`" - echo "::set-output name=release_date::`date \"+%Y-%m-%d %R:%S\"`" - echo "::set-output name=release_tag_name::daily" - echo "::set-output name=sha384_es5::`cat webchat-es5.js | openssl dgst -sha384 -binary | openssl base64 -A`" - echo "::set-output name=sha384_full::`cat webchat.js | openssl dgst -sha384 -binary | openssl base64 -A`" - echo "::set-output name=sha384_minimal::`cat webchat-minimal.js | openssl dgst -sha384 -binary | openssl base64 -A`" - - - name: Display build metadata - run: | - echo git_short_sha=${{ steps.compute_hash.outputs.git_short_sha }} - echo package_version=${{ steps.compute_hash.outputs.package_version }} - echo release_date=${{ steps.compute_hash.outputs.release_date }} - echo release_tag_name=${{ steps.compute_hash.outputs.release_tag_name }} - echo sha384_es5=${{ steps.compute_hash.outputs.sha384_es5 }} - echo sha384_full=${{ steps.compute_hash.outputs.sha384_full }} - echo sha384_minimal=${{ steps.compute_hash.outputs.sha384_minimal }} + echo git_short_sha=`echo ${{ github.sha }} | cut -c 1-7` | tee --append $GITHUB_OUTPUT + echo package_version=`tar -xOzf botframework-webchat-4*.tgz package/package.json | jq -r '.version'` | tee --append $GITHUB_OUTPUT + echo release_date=`date \"+%Y-%m-%d %R:%S\"` | tee --append $GITHUB_OUTPUT + echo release_tag_name=daily | tee --append $GITHUB_OUTPUT + echo sha384_es5=`cat webchat-es5.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT + echo sha384_full=`cat webchat.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT + echo sha384_minimal=`cat webchat-minimal.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT - name: Delete existing release # When this workflow is run in its first time, or 2+ are running side-by-side, the release may not exists. It is okay to ignore 404s.