fixup! ci: add action-semantic-pull-request
This commit is contained in:
parent
d2f6d33006
commit
76196661ac
17
.github/workflows/lint-pr.yml
vendored
17
.github/workflows/lint-pr.yml
vendored
@ -5,14 +5,17 @@ on:
|
|||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
commitlint:
|
||||||
name: Validate PR title
|
name: Validate PR title
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo "${{ toJson(github) }}"
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: amannn/action-semantic-pull-request@v5
|
- uses: actions/setup-node@v4
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ""
|
node-version: lts/*
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- run: npm install -D @commitlint/cli @commitlint/config-conventional
|
||||||
|
|
||||||
|
- run: npx commitlint --from ${{ gitea.event.pull_request.base.sha }} --to ${{ gitea.event.pull_request.head.sha }} --verbose
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user