Skip to content

Commit 25ecd4a

Browse files
CID-4411: Fix branch name validation
1 parent 3647282 commit 25ecd4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/gradle-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
steps:
1616
- name: Check branch name
1717
run: |
18-
if [[ "${{ github.ref }}" == "refs/heads/main" ]] || [[ "${{ github.ref }}" =~ ^refs/heads/feature/.*$ ]] || [[ "${{ github.ref }}" =~ ^refs/heads/release/v.*$ ]] || [[ "${{ github.ref }}" =~ ^refs/heads/bug/.*$ ]] ; then
18+
if [[ "${{ github.ref }}" == "refs/heads/main" ]] || \
19+
[[ "${{ github.ref }}" =~ ^refs/heads/feature/.*$ ]] || \
20+
[[ "${{ github.ref }}" =~ ^refs/heads/release/v.*$ ]] || \
21+
[[ "${{ github.ref }}" =~ ^refs/heads/bug/.*$ ]] || \
22+
[[ "${{ github.ref }}" == "refs/heads/renovate/all-dependencies" ]] ; then
1923
echo "Branch naming is correct!"
2024
else
2125
echo "Invalid branch name! Correct format: 'feature/<branch-name>' or 'bug/<branch-name>' or release/vx.x.x"

0 commit comments

Comments
 (0)