From 8edd5e83c9aade20b59d6e0deffd8d37798c861c Mon Sep 17 00:00:00 2001 From: Barrett LaFrance Date: Wed, 28 Aug 2024 11:01:36 -0500 Subject: [PATCH] chore: update --- .github/workflows/semrel-rc.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/semrel-rc.yml b/.github/workflows/semrel-rc.yml index 4205c01b9..74b82bce4 100644 --- a/.github/workflows/semrel-rc.yml +++ b/.github/workflows/semrel-rc.yml @@ -39,7 +39,7 @@ jobs: registry-url: "https://registry.npmjs.org" cache: npm - - name: Release needed? + - name: Is a release needed? id: release-needed env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -48,8 +48,7 @@ jobs: needed=false needle="There are no relevant changes, so no new version is releaseds." - npm run sem-rel -- --dry-run | grep --quiet "$needle" - retval="$?" + retval=$(npm run sem-rel -- --dry-run | grep --quiet "$needle" ; echo "$?") echo "retval: $retval" if [ "$retval" = 0 ] then needed=false ; else needed=true