Skip to content

Commit 4b4b09a

Browse files
committed
[Refactor] (config) Upgrade the GitHub Action syntax usage about set-output commands.
1 parent 6f0ade4 commit 4b4b09a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_git-tag_and_create_github-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
release_type=$(echo "$release" | grep -E "\[Python\] \[Final Running Result\] ((Official\-Release)|(Pre\-Release))" | grep -E -o "((Official\-Release)|(Pre\-Release))")
8989
echo "🐍 Release Type: $release_type"
9090
91-
echo "::set-output name=release_type::$(echo $release_type)"
91+
echo "release_type=$(echo $release_type)" >> $GITHUB_OUTPUT
9292
env:
9393
GITHUB_TOKEN: ${{ secrets.github_auth_token }}
9494

@@ -103,7 +103,7 @@ jobs:
103103
release_version=$(echo "$release" | grep -E "\[GitHub Action - Reusable workflow\] \[Final Running Result\] (Official\-Release and version: ([0-9]{1,})|(Pre\-Release))" | grep -E -o "(([0-9]{1,})|(Pre\-Release))")
104104
echo "🤖 Release Version: $release_version"
105105
106-
echo "::set-output name=release_version::$(echo $release_version)"
106+
echo "release_version=$(echo $release_version)" >> $GITHUB_OUTPUT
107107
env:
108108
GITHUB_TOKEN: ${{ secrets.github_auth_token }}
109109

0 commit comments

Comments
 (0)