mirror of
https://github.com/google/blockly.git
synced 2025-12-15 22:00:07 +01:00
Pass PR title to commitlint via environment variable (#9414)
This commit is contained in:
4
.github/workflows/conventional-label.yml
vendored
4
.github/workflows/conventional-label.yml
vendored
@@ -7,6 +7,8 @@ name: commit lint & label
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
permissions:
|
||||
pull-requests: read
|
||||
contents: read
|
||||
@@ -23,7 +25,7 @@ jobs:
|
||||
run: npm ci
|
||||
- name: Check PR title
|
||||
id: check-pr-title
|
||||
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose
|
||||
run: echo "$PR_TITLE" | npx commitlint --verbose
|
||||
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user