From 314ee7d5729a81d5b73f8f72ded6a8b307576e02 Mon Sep 17 00:00:00 2001 From: Arun Sathiya Date: Thu, 18 Jan 2024 13:14:45 -0800 Subject: [PATCH] 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 --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 241b74b32..20e865d0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,9 +30,9 @@ jobs: new_tag=$(echo $output | awk '{print $2}') echo "new version is $new_version" echo "new tag is $new_tag" - echo ::set-output name=version::$new_version - echo ::set-output name=tag::$new_tag - echo ::set-output name=branch_name::$new_version-release + echo "version=$new_version" >> $GITHUB_OUTPUT + echo "tag=$new_tag" >> $GITHUB_OUTPUT + echo "branch_name=$new_version-release" >> $GITHUB_OUTPUT echo "NEW_TAG=$new_tag" >> $GITHUB_ENV echo "NEW_BRANCH=$new_version-release" >> $GITHUB_ENV