From 5f24875b3a64c6faf0f1d95210c59967a9a37c7a Mon Sep 17 00:00:00 2001 From: Yuhang Guo <22561797+Sherry520@users.noreply.github.com> Date: Sat, 17 Aug 2024 10:22:19 +0800 Subject: [PATCH] GitHub Actions: Deprecating set-output commands --- .github/workflows/release-on-merge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-on-merge.yml b/.github/workflows/release-on-merge.yml index 4a19fe08..109383f0 100644 --- a/.github/workflows/release-on-merge.yml +++ b/.github/workflows/release-on-merge.yml @@ -17,8 +17,8 @@ jobs: echo Computing next tag number LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3) PATCH=$(($LASTPATCH+1)) - echo "::set-output name=tagname::2.1.${PATCH}" - echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" + echo "tagname=2.1.${PATCH}" >> $GITHUB_OUTPUT + echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT - name: Set up Ruby uses: ruby/setup-ruby@v1