chore: use >> $GITHUB_OUTPUT instead of ::set-output (#28608)

This commit is contained in:
Yihau Chen 2022-10-29 13:23:16 +08:00 committed by GitHub
parent 6b93d05c37
commit c7cf598582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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