From f21640829b79b32358f6d10774abed933d43f258 Mon Sep 17 00:00:00 2001 From: "Jibon L. Costa" Date: Sat, 21 Dec 2024 20:06:25 +0100 Subject: [PATCH] try --- .github/workflows/release-please.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 080a169..cd2f358 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -36,12 +36,14 @@ jobs: run: | bash generate.sh cd js + echo "release_created? ${{ steps.release.outputs.release_created }}" - if [ ! steps.release.outputs.release_created ]; then + if [ ! ${{ steps.release.outputs.release_created }} ]; then # we'll update version for beta release - git_hash=$(git rev-parse --short "$GITHUB_SHA") + git_hash=$(git rev-parse --short "${{ GITHUB_SHA }}") CURRENT_VERSION=$(node -p "require('./package.json').version") NEW_VERSION="${CURRENT_VERSION}-${git_hash}" + echo "New version: ${NEW_VERSION}" sed -i "s/${CURRENT_VERSION}/${NEW_VERSION}/" package.json fi