From 6ddad2d1d4f99eb3cf48c712b0df34dd93fa7789 Mon Sep 17 00:00:00 2001 From: Shay Date: Thu, 16 May 2024 06:08:04 -0700 Subject: [PATCH] Update build-and-publish.yml update ::set-output to new environment file syntax: echo "{name}={value}" >> "$GITHUB_OUTPUT" --- .github/workflows/build-and-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index acc2f196..35aa04b0 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -58,13 +58,13 @@ jobs: then if [ "$GITHUB_REF" = "refs/heads/main" ] then - echo "::set-output name=version::0.0.0.rc" + echo "name=version::0.0.0.rc" >> "$GITHUB_OUTPUT" else PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') - echo "::set-output name=version::0.0.0.dev${PR_NUMBER}" + echo "name=version::0.0.0.dev${PR_NUMBER}" >> "$GITHUB_OUTPUT" fi else - echo "::set-output name=version::${{ github.event.release.tag_name }}" + echo "name=version::${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT" fi - name: Build env: