Skip to content

Commit 56e720e

Browse files
Merge master into feature/postreinvent
2 parents 7cefa67 + 73d6dd6 commit 56e720e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
- uses: actions/setup-node@v4
3333
with:
3434
node-version: '20'
35-
- name: Check Branch title
35+
- name: Validate Branch name
36+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref != ''}}
3637
env:
37-
BRANCH_NAME: ${{ github.head_ref }}
38+
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
3839
run: |
3940
node "$GITHUB_WORKSPACE/.github/workflows/lintbranch.js" run "$BRANCH_NAME"
4041
- name: Check PR title

0 commit comments

Comments
 (0)