Skip to content

Commit

Permalink
fix github action branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed Sep 20, 2024
1 parent 715a6db commit c5bed8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-branch-name.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate Branch Name
name: Branch Name

on:
pull_request:
Expand All @@ -10,8 +10,8 @@ jobs:
steps:
- name: Check branch name for different base branches
run: |
BASE="${{ github.event.pull_request.base.ref }}"
BRANCH="${{ github.ref }}"
BASE="${{ github.base_ref }}"
BRANCH="${{ github.head_ref }}"
if [[ "$BASE" == "main" ]]; then
if [[ ! "$BRANCH" =~ ^refs/heads/hotfix/.+ ]]; then
Expand Down

0 comments on commit c5bed8e

Please sign in to comment.