From cd927fa11df0e3c88b631171fd92572f1ae8fa0a Mon Sep 17 00:00:00 2001 From: arteck <6681528+arteck@users.noreply.github.com> Date: Sun, 10 Nov 2024 08:57:30 +0100 Subject: [PATCH] Update test-and-release.yml --- .github/workflows/test-and-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 4431185b..9cd2f1cc 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -89,14 +89,14 @@ jobs: # The body may be multiline, therefore newlines and % need to be escaped run: | VERSION="${{ github.ref }}" - VERSION=${VERSION##*/v} - echo "::set-output name=VERSION::$VERSION" + VERSION=${VERSION##*/v} + echo "{VERSION}={$VERSION}" >> $GITHUB_OUTPUT BODY=$(git show -s --format=%b) BODY="${BODY//'%'/'%25'}" BODY="${BODY//$'\n'/'%0A'}" BODY="${BODY//$'\r'/'%0D'}" - echo "::set-output name=BODY::$BODY" - + echo "{BODY}={$BODY}" >> $GITHUB_OUTPUT + # If you like, activate automated version publish to NPM # Only if commit contains a version, see : https://github.com/AlCalzone/release-script