From 12938d1203056aa7808f9df19bb990cd69e58ab2 Mon Sep 17 00:00:00 2001 From: SaumyaBhushan Date: Tue, 29 Nov 2022 12:28:24 +0530 Subject: [PATCH 1/8] Update our Actions to avoid set-output command Signed-off-by: SaumyaBhushan --- .github/workflows/build.yml | 4 ++-- .github/workflows/delivery-archlinux-git.yml | 6 +++--- .github/workflows/delivery-archlinux.yml | 10 +++++----- .github/workflows/delivery-homebrew.yml | 6 +++--- .github/workflows/delivery-ubuntu.yml | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d41b26bb6..337f519f25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -247,7 +247,7 @@ jobs: id: lifecycle_version run: | LIFECYCLE_VERSION=$(./pack-linux/pack report | grep 'Default Lifecycle Version:' | grep -o '[^ ]*$') - echo "::set-output name=version::$LIFECYCLE_VERSION" + echo "version::$LIFECYCLE_VERSION" >> $GITHUB_OUTPUT - name: Extract pack help id: pack_help # Replacements have to do with multiline output. @@ -257,7 +257,7 @@ jobs: PACK_HELP="${PACK_HELP//'%'/'%25'}" PACK_HELP="${PACK_HELP//$'\n'/'%0A'}" PACK_HELP="${PACK_HELP//$'\r'/'%0D'}" - echo "::set-output name=help::$PACK_HELP" + echo "help::$PACK_HELP" >> $GITHUB_OUTPUT - name: Generate changelog uses: ./.github/workflows/actions/release-notes id: changelog diff --git a/.github/workflows/delivery-archlinux-git.yml b/.github/workflows/delivery-archlinux-git.yml index 938367bcc0..a615b69a9e 100644 --- a/.github/workflows/delivery-archlinux-git.yml +++ b/.github/workflows/delivery-archlinux-git.yml @@ -26,9 +26,9 @@ jobs: version=$(echo "${git_description}" | awk -F- '{print $(1)}' | sed 's/^v//') revision=$(echo "${git_description}" | awk -F- '{print $(NF-1)}') commit=$(echo "${git_description}" | awk -F- '{print $(NF)}' | sed 's/^g//') - echo "::set-output name=version::$version" - echo "::set-output name=revision::$revision" - echo "::set-output name=commit::$commit" + echo "version=$version" >> $GITHUB_OUTPUT + echo "revision=$revision" >> $GITHUB_OUTPUT + echo "commit=$commit" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 with: diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index 7fe37650f7..2f272c3180 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -45,8 +45,8 @@ jobs: curl -sSL "$url" -o "$fullpath" sha512=$(sha512sum "$fullpath" | awk '{ print $1 }') - echo "::set-output name=url::$url" - echo "::set-output name=sha512::$sha512" + echo "url::$url" >> $GITHUB_OUTPUT + echo "sha512::$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 with: @@ -120,9 +120,9 @@ jobs: run: | curl -sSL ${{ steps.assets.outputs.linux_url }} -o ${{ steps.assets.outputs.linux_name }} sha512=$(sha512sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1) - - echo "::set-output name=url::${{ steps.assets.outputs.linux_url }}" - echo "::set-output name=sha512::$sha512" + + echo "url::${{ steps.assets.outputs.linux_url }}" >> $GITHUB_OUTPUT + echo "sha512::$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 with: diff --git a/.github/workflows/delivery-homebrew.yml b/.github/workflows/delivery-homebrew.yml index 0eea8de3b3..bc61e83acc 100644 --- a/.github/workflows/delivery-homebrew.yml +++ b/.github/workflows/delivery-homebrew.yml @@ -65,15 +65,15 @@ jobs: run: | curl -sSL ${{ steps.assets.outputs.linux_url }} -o ${{ steps.assets.outputs.linux_name }} linux_sha256=$(sha256sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1) - echo "::set-output name=linux_sha256::$linux_sha256" + echo "linux_sha256=$linux_sha256" >> $GITHUB_OUTPUT curl -sSL ${{ steps.assets.outputs.macos_url }} -o ${{ steps.assets.outputs.macos_name }} macos_sha256=$(sha256sum ${{ steps.assets.outputs.macos_name }} | cut -d ' ' -f1) - echo "::set-output name=macos_sha256::$macos_sha256" + echo "macos_sha256=$macos_sha256" >> $GITHUB_OUTPUT curl -sSL ${{ steps.assets.outputs.macos_arm64_url }} -o ${{ steps.assets.outputs.macos_arm64_name }} macos_arm64_sha256=$(sha256sum ${{ steps.assets.outputs.macos_arm64_name }} | cut -d ' ' -f1) - echo "::set-output name=macos_arm64_sha256::$macos_arm64_sha256" + echo "macos_arm64_sha256=$macos_arm64_sha256" >> $GITHUB_OUTPUT - name: Fill pack.rb uses: cschleiden/replace-tokens@v1 with: diff --git a/.github/workflows/delivery-ubuntu.yml b/.github/workflows/delivery-ubuntu.yml index 47fe98f786..e3ffdf1d5a 100644 --- a/.github/workflows/delivery-ubuntu.yml +++ b/.github/workflows/delivery-ubuntu.yml @@ -29,7 +29,7 @@ jobs: - name: Metadata id: metadata run: | - echo "::set-output name=date::$(date +"%a, %d %b %Y %T %z")" + echo "date=$(date +"%a, %d %b %Y %T %z")" >> $GITHUB_OUTPUT - name: Determine version uses: actions/github-script@v6 From b8fb7963aad737099971aa152d794b75345b5c3b Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:40:56 +0530 Subject: [PATCH 2/8] Update .github/workflows/build.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 337f519f25..5ca927c443 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -247,7 +247,7 @@ jobs: id: lifecycle_version run: | LIFECYCLE_VERSION=$(./pack-linux/pack report | grep 'Default Lifecycle Version:' | grep -o '[^ ]*$') - echo "version::$LIFECYCLE_VERSION" >> $GITHUB_OUTPUT + echo "version=$LIFECYCLE_VERSION" >> $GITHUB_OUTPUT - name: Extract pack help id: pack_help # Replacements have to do with multiline output. From 8e8cebabf666aa3900841208d6475d9a54ff2606 Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:41:08 +0530 Subject: [PATCH 3/8] Update .github/workflows/build.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ca927c443..fdec7c71f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -257,7 +257,7 @@ jobs: PACK_HELP="${PACK_HELP//'%'/'%25'}" PACK_HELP="${PACK_HELP//$'\n'/'%0A'}" PACK_HELP="${PACK_HELP//$'\r'/'%0D'}" - echo "help::$PACK_HELP" >> $GITHUB_OUTPUT + echo "help=$PACK_HELP" >> $GITHUB_OUTPUT - name: Generate changelog uses: ./.github/workflows/actions/release-notes id: changelog From ea3195f717ea89fc639edc26111013b389279d18 Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:41:16 +0530 Subject: [PATCH 4/8] Update .github/workflows/delivery-archlinux.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/delivery-archlinux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index 2f272c3180..0688f72763 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -45,7 +45,7 @@ jobs: curl -sSL "$url" -o "$fullpath" sha512=$(sha512sum "$fullpath" | awk '{ print $1 }') - echo "url::$url" >> $GITHUB_OUTPUT + echo "url=$url" >> $GITHUB_OUTPUT echo "sha512::$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 From 53a7904ba0cdfd20711296dfb37d9dc67e1cd936 Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:41:27 +0530 Subject: [PATCH 5/8] Update .github/workflows/delivery-archlinux.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/delivery-archlinux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index 0688f72763..bce83823d5 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -46,7 +46,7 @@ jobs: curl -sSL "$url" -o "$fullpath" sha512=$(sha512sum "$fullpath" | awk '{ print $1 }') echo "url=$url" >> $GITHUB_OUTPUT - echo "sha512::$sha512" >> $GITHUB_OUTPUT + echo "sha512=$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 with: From d86d1cd031303548dc40dba8b75a9233a2e9a2ea Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:41:39 +0530 Subject: [PATCH 6/8] Update .github/workflows/delivery-archlinux.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/delivery-archlinux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index bce83823d5..d2c77c36dd 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -122,7 +122,7 @@ jobs: sha512=$(sha512sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1) echo "url::${{ steps.assets.outputs.linux_url }}" >> $GITHUB_OUTPUT - echo "sha512::$sha512" >> $GITHUB_OUTPUT + echo "sha512=$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 with: From b6e92eb5473e4a6fe329a2c55bad12fa58733f9b Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:41:46 +0530 Subject: [PATCH 7/8] Update .github/workflows/delivery-archlinux.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/delivery-archlinux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index d2c77c36dd..492a152f0b 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -121,7 +121,7 @@ jobs: curl -sSL ${{ steps.assets.outputs.linux_url }} -o ${{ steps.assets.outputs.linux_name }} sha512=$(sha512sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1) - echo "url::${{ steps.assets.outputs.linux_url }}" >> $GITHUB_OUTPUT + echo "url=${{ steps.assets.outputs.linux_url }}" >> $GITHUB_OUTPUT echo "sha512=$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD uses: cschleiden/replace-tokens@v1 From 3de8207d0f5d4f2d15dda1da5c175edad297ff13 Mon Sep 17 00:00:00 2001 From: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> Date: Tue, 29 Nov 2022 18:41:55 +0530 Subject: [PATCH 8/8] Update .github/workflows/delivery-archlinux.yml Co-authored-by: Sambhav Kothari Signed-off-by: Saumya <76432998+SaumyaBhushan@users.noreply.github.com> --- .github/workflows/delivery-archlinux.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/delivery-archlinux.yml b/.github/workflows/delivery-archlinux.yml index 492a152f0b..d78db59637 100644 --- a/.github/workflows/delivery-archlinux.yml +++ b/.github/workflows/delivery-archlinux.yml @@ -120,7 +120,6 @@ jobs: run: | curl -sSL ${{ steps.assets.outputs.linux_url }} -o ${{ steps.assets.outputs.linux_name }} sha512=$(sha512sum ${{ steps.assets.outputs.linux_name }} | cut -d ' ' -f1) - echo "url=${{ steps.assets.outputs.linux_url }}" >> $GITHUB_OUTPUT echo "sha512=$sha512" >> $GITHUB_OUTPUT - name: Fill PKGBUILD