ci: Use GITHUB_OUTPUT envvar instead of set-output command

`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/).

This PR updates the usage of `set-output` to `$GITHUB_OUTPUT`

Instructions for envvar usage from GitHub docs:

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
This commit is contained in:
Arun Sathiya 2024-01-18 13:14:45 -08:00 committed by GitHub
parent fad2c4d1eb
commit 314ee7d572
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,9 +30,9 @@ jobs:
new_tag=$(echo $output | awk '{print $2}') new_tag=$(echo $output | awk '{print $2}')
echo "new version is $new_version" echo "new version is $new_version"
echo "new tag is $new_tag" echo "new tag is $new_tag"
echo ::set-output name=version::$new_version echo "version=$new_version" >> $GITHUB_OUTPUT
echo ::set-output name=tag::$new_tag echo "tag=$new_tag" >> $GITHUB_OUTPUT
echo ::set-output name=branch_name::$new_version-release echo "branch_name=$new_version-release" >> $GITHUB_OUTPUT
echo "NEW_TAG=$new_tag" >> $GITHUB_ENV echo "NEW_TAG=$new_tag" >> $GITHUB_ENV
echo "NEW_BRANCH=$new_version-release" >> $GITHUB_ENV echo "NEW_BRANCH=$new_version-release" >> $GITHUB_ENV