From c7cf598582f6dfdf41b93460c982ccc5b20a3b86 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Sat, 29 Oct 2022 13:23:16 +0800 Subject: [PATCH] chore: use >> $GITHUB_OUTPUT instead of ::set-output (#28608) --- .github/workflows/docs.yml | 8 ++++---- .github/workflows/release-artifacts.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a099095fe3..f66f5bec26 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,9 +25,9 @@ jobs: id: check run: | source ci/env.sh - echo "::set-output name=tag::$CI_TAG" + echo "tag=$CI_TAG" >> $GITHUB_OUTPUT eval "$(ci/channel-info.sh)" - echo "::set-output name=channel::$CHANNEL" + echo "channel=$CHANNEL" >> $GITHUB_OUTPUT - name: Get specific changed files id: changed-files-specific @@ -43,7 +43,7 @@ jobs: echo "tag: ${{ steps.check.outputs.tag }}" echo "channel: ${{ steps.check.outputs.channel }}" echo "any changes: ${{ steps.changed-files-specific.outputs.any_changed }}" - echo "::set-output name=need_to_build::${{ + echo "need_to_build=${{ steps.check.outputs.tag != '' || ( @@ -51,7 +51,7 @@ jobs: && steps.changed-files-specific.outputs.any_changed != '' ) - }}" + }}" >> $GITHUB_OUTPUT shell: bash - name: Setup Node diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index 36eb31d4e1..0f86728c55 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -52,9 +52,9 @@ jobs: choco install protoc export PROTOC="C:\ProgramData\chocolatey\lib\protoc\tools\bin\protoc.exe" source /tmp/env.sh - echo "::set-output name=tag::$CI_TAG" + echo "tag=$CI_TAG" >> $GITHUB_OUTPUT eval "$(ci/channel-info.sh)" - echo "::set-output name=channel::$CHANNEL" + echo "channel=$CHANNEL" >> $GITHUB_OUTPUT ci/publish-tarball.sh - name: Prepare Upload Files