From 53606ec27d62b829c60c540d1708105e849fc024 Mon Sep 17 00:00:00 2001 From: Divhead Date: Wed, 1 Jan 2025 22:30:12 +0300 Subject: [PATCH] fix release workflow --- .github/workflows/check-branch-conventions.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-branch-conventions.yml b/.github/workflows/check-branch-conventions.yml index 3335a7cc..37a606d5 100644 --- a/.github/workflows/check-branch-conventions.yml +++ b/.github/workflows/check-branch-conventions.yml @@ -1,4 +1,4 @@ -name: Check Branch and PR Naming Conventions +name: PR Naming Conventions on: pull_request: @@ -20,20 +20,20 @@ jobs: # Check for Release branches if [[ "$branch_name" =~ ^release- ]]; then - if [[ ! "$pr_title" =~ ^Release: ]]; then - echo "Error: For 'release-*' branches, PR title must start with 'Release:'." + if [[ ! "$pr_title" =~ ^Release ]]; then + echo "Error: For 'release-*' branches, PR title must start with 'Release'." exit 1 fi # Check for Hotfix branches elif [[ "$branch_name" =~ ^hotfix- ]]; then - if [[ ! "$pr_title" =~ ^Hotfix: ]]; then - echo "Error: For 'hotfix-*' branches, PR title must start with 'Hotfix:'." + if [[ ! "$pr_title" =~ ^Hotfix ]]; then + echo "Error: For 'hotfix-*' branches, PR title must start with 'Hotfix'." exit 1 fi else - echo "Error: Branch must start with 'release-' or 'hotfix-'." + echo "PRs in the master are only allowed from release-* or hotfix-* branches with the corresponding PR titles starting with Release or Hotfix." exit 1 fi