From 810cbc8da5ca31e7510f989a91b46c7964d02810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lison=20Fernandes?= Date: Tue, 12 Aug 2025 15:37:04 +0100 Subject: [PATCH] [PM-24590] Add support to hotfix specific apps in Cut Release Branch workflow (#5671) --- .github/workflows/release-branch.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index fc29c534f5..c9104a4d07 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -9,7 +9,8 @@ on: type: choice options: - RC - - Hotfix + - Hotfix Password Manager + - Hotfix Authenticator - Test jobs: @@ -48,9 +49,17 @@ jobs: - name: Create Hotfix Branch id: hotfix_branch - if: inputs.release_type == 'Hotfix' + if: startsWith(inputs.release_type, 'Hotfix') + env: + _RELEASE_TYPE: ${{ inputs.release_type }} run: | - latest_tag=$(git tag -l --sort=-creatordate | head -n 1) + app_codename="bwpm" + if [ "$_RELEASE_TYPE" == "Hotfix Authenticator" ]; then + app_codename="bwa" + fi + echo "🌿 app codename: $app_codename" + + latest_tag=$(git tag -l --sort=-creatordate | grep "$app_codename" | head -n 1) if [ -z "$latest_tag" ]; then echo "::error::No tags found in the repository" exit 1