From 181d7fc5a3a3eb20dab463e4c61ea609cea3bd75 Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Wed, 13 Aug 2025 14:09:48 +0200 Subject: [PATCH] Release from branch workflow fix (#4740) --- .github/actions/update-library-versions/action.yml | 2 +- .github/workflows/release.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/update-library-versions/action.yml b/.github/actions/update-library-versions/action.yml index 0f277608a..0a8d35880 100644 --- a/.github/actions/update-library-versions/action.yml +++ b/.github/actions/update-library-versions/action.yml @@ -17,7 +17,7 @@ runs: run: | VERSION_IN_PACKAGE_JSON=$(jq -cr '.version' < package.json) - if [[ ${{ inputs.branch_name }} =~ ^master.*?$ ]] ; then + if [[ ${{ inputs.branch_name }} =~ ^master.*?$ ]] || [[ "${{ inputs.branch_name }}" == release/* ]] ; then NEW_LIBRARY_VERSION="$VERSION_IN_PACKAGE_JSON" else NEW_LIBRARY_VERSION="${VERSION_IN_PACKAGE_JSON}-${{ github.run_id }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 948f5c945..f23b73ee8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,6 @@ on: branches: - master - develop - - release/** env: BASE_URL: ${{ secrets.PIPELINE_ENV_URL }}