From f3b1be08cb4b9e25097e99a167c8d1b63b20b12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lison=20Fernandes?= Date: Wed, 18 Dec 2024 23:17:49 +0000 Subject: [PATCH] change git command to check for existing hotfix branch --- .github/workflows/release-branch.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 95d22927f8c..019baed9a1f 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -48,7 +48,8 @@ jobs: exit 1 fi branch_name="release/hotfix-${latest_tag}" - if git show-ref --quiet refs/heads/$branch_name; then + echo "🌿 branch name: $branch_name" + if git show-ref --verify --quiet "refs/remotes/origin/$branch_name"; then echo "# :fire: :warning: Hotfix branch already exists: ${branch_name}" >> $GITHUB_STEP_SUMMARY exit 0 fi