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: