mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
ci: Rename commitlint to PR title Lint, echo PR titles from env var
Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
This commit is contained in:
parent
f07e275282
commit
e791fb9440
1 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name: Commitlint
|
||||
name: PR Title Lint
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
types:
|
||||
|
|
@ -25,6 +25,7 @@ jobs:
|
|||
run: npm install @commitlint/config-conventional @commitlint/cli
|
||||
|
||||
- name: Run commitlint on PR title
|
||||
run: >-
|
||||
echo '${{ github.event.pull_request.title }}' |
|
||||
npx commitlint --verbose
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
# Echo from env variable to avoid bash errors with extra characters
|
||||
run: echo "$PR_TITLE" | npx commitlint --verbose
|
||||
Loading…
Add table
Add a link
Reference in a new issue