mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
ci: run commitlint action on PRs only
This commit is contained in:
parent
6192ffed75
commit
62f23e8dab
2 changed files with 14 additions and 2 deletions
3
.github/workflows/ci-cd.yml
vendored
3
.github/workflows/ci-cd.yml
vendored
|
@ -22,8 +22,7 @@ jobs:
|
||||||
TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') }}
|
TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: wagoid/commitlint-github-action@v5
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
13
.github/workflows/commitlint.yml
vendored
Normal file
13
.github/workflows/commitlint.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
name: Lint commit messages
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commitlint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: wagoid/commitlint-github-action@v5
|
Loading…
Reference in a new issue