From 748b39a6df09480f38e2aff1745c414366f7f289 Mon Sep 17 00:00:00 2001 From: Arun Date: Thu, 11 Jan 2024 17:05:44 -0800 Subject: [PATCH 1/2] ci: Use GITHUB_OUTPUT envvar instead of set-output command --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0fcc321f..c765d407 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,7 +13,7 @@ jobs: - name: Extract tag version from ref id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - name: is_release_tag check id: tag_check @@ -21,7 +21,7 @@ jobs: RELEASE_TAG: ${{ steps.get_version.outputs.VERSION }} run: | ./.github/scripts/is_release_tag.bash $RELEASE_TAG - echo ::set-output name=exit_code::$? + echo "exit_code=$?" >> $GITHUB_OUTPUT - name: Debug is_release_tag check env: From 3d8c6097c50cfa476ed4d86fdc43b717f3da1884 Mon Sep 17 00:00:00 2001 From: Arun Date: Mon, 22 Jan 2024 17:12:31 -0800 Subject: [PATCH 2/2] Quote envvar to match documentation --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c765d407..bc07efcb 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,7 +13,7 @@ jobs: - name: Extract tag version from ref id: get_version - run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT" - name: is_release_tag check id: tag_check @@ -21,7 +21,7 @@ jobs: RELEASE_TAG: ${{ steps.get_version.outputs.VERSION }} run: | ./.github/scripts/is_release_tag.bash $RELEASE_TAG - echo "exit_code=$?" >> $GITHUB_OUTPUT + echo "exit_code=$?" >> "$GITHUB_OUTPUT" - name: Debug is_release_tag check env: