From dcd0121e0331f0fbe95a46b47839c2c963fbc01b Mon Sep 17 00:00:00 2001 From: alfredo-mfaria Date: Tue, 2 Jan 2024 15:39:03 +0100 Subject: [PATCH] CID-2174 Support branch with naming like: release/vx.x.x --- .github/workflows/gradle-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 331a7e1..da5363e 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -15,10 +15,10 @@ jobs: steps: - name: Check branch name run: | - if [[ "${{ github.ref }}" == "refs/heads/main" ]] || [[ "${{ github.ref }}" =~ ^refs/heads/feature/.*$ ]] || [[ "${{ github.ref }}" =~ ^refs/heads/bug/.*$ ]] ; then + if [[ "${{ github.ref }}" == "refs/heads/main" ]] || [[ "${{ github.ref }}" =~ ^refs/heads/feature/.*$ ]] || [[ "${{ github.ref }}" =~ ^refs/heads/release/v.*$ ]] || [[ "${{ github.ref }}" =~ ^refs/heads/bug/.*$ ]] ; then echo "Branch naming is correct!" else - echo "Invalid branch name! Correct format: 'feature/' or 'bug/'" + echo "Invalid branch name! Correct format: 'feature/' or 'bug/' or release/vx.x.x" exit 1 fi gradle-ci: