From 89b998ce1fce5340d90bf16a5779d302b7579cda Mon Sep 17 00:00:00 2001 From: aboudjem Date: Wed, 29 Nov 2023 17:53:41 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20fix=20ci=20for=20branch=20naming?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check_branch_name.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_branch_name.yml b/.github/workflows/check_branch_name.yml index ffa9904..1ced204 100644 --- a/.github/workflows/check_branch_name.yml +++ b/.github/workflows/check_branch_name.yml @@ -5,14 +5,14 @@ on: jobs: check-branch-name: runs-on: ubuntu-latest - if: github.event.ref_type == 'branch' && !contains(github.ref, 'refs/heads/main') && !contains(github.ref, 'refs/heads/develop') + if: github.event.ref_type == 'branch' && !contains(github.ref, 'refs/heads/main') steps: - name: Check Branch Name run: | - BRANCH_PREFIX_REGEX="^(features/|fixes/|releases/).+" + BRANCH_PREFIX_REGEX="^(feat/|fix/|release/|chore/).+" BRANCH_NAME=${GITHUB_REF#refs/heads/} if [[ ! $BRANCH_NAME =~ $BRANCH_PREFIX_REGEX ]]; then echo "Invalid branch name: $BRANCH_NAME" - echo "Branch name must start with 'features/', 'fixes/', or 'releases/'." + echo "Branch name must start with 'feat/', 'fix/', 'chore/', or 'release/'." exit 1 fi