Skip to content

Commit ba8d01a

Browse files
authored
Pass PR title to commitlint via environment variable (#9414)
1 parent 40d72a3 commit ba8d01a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/conventional-label.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ name: commit lint & label
77
jobs:
88
lint:
99
runs-on: ubuntu-latest
10+
env:
11+
PR_TITLE: ${{ github.event.pull_request.title }}
1012
permissions:
1113
pull-requests: read
1214
contents: read
@@ -23,7 +25,7 @@ jobs:
2325
run: npm ci
2426
- name: Check PR title
2527
id: check-pr-title
26-
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose
28+
run: echo "$PR_TITLE" | npx commitlint --verbose
2729

2830
label:
2931
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)