Skip to content

Commit 081b968

Browse files
committed
use env var for passing branch name
1 parent 812d67e commit 081b968

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333
with:
3434
node-version: '20'
3535
- name: Check Branch title
36+
env:
37+
BRANCH_NAME: ${{ github.head_ref }}
3638
run: |
37-
node "$GITHUB_WORKSPACE/.github/workflows/lintbranch.js"
39+
node "$GITHUB_WORKSPACE/.github/workflows/lintbranch.js run $BRANCH_NAME"
3840
- name: Check PR title
3941
run: |
4042
node "$GITHUB_WORKSPACE/.github/workflows/lintcommit.js"

0 commit comments

Comments
 (0)