Release from branch workflow fix (#4740)

This commit is contained in:
MichalKinas
2025-08-13 14:09:48 +02:00
committed by GitHub
parent 91db6920d0
commit 181d7fc5a3
2 changed files with 1 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ runs:
run: | run: |
VERSION_IN_PACKAGE_JSON=$(jq -cr '.version' < package.json) 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" NEW_LIBRARY_VERSION="$VERSION_IN_PACKAGE_JSON"
else else
NEW_LIBRARY_VERSION="${VERSION_IN_PACKAGE_JSON}-${{ github.run_id }}" NEW_LIBRARY_VERSION="${VERSION_IN_PACKAGE_JSON}-${{ github.run_id }}"

View File

@@ -38,7 +38,6 @@ on:
branches: branches:
- master - master
- develop - develop
- release/**
env: env:
BASE_URL: ${{ secrets.PIPELINE_ENV_URL }} BASE_URL: ${{ secrets.PIPELINE_ENV_URL }}