Skip to content

Commit

Permalink
ci: reuse commitlint from opiproject org
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com>
  • Loading branch information
glimchb authored and artek-koltun committed Jul 24, 2023
1 parent ae68b15 commit a45dc6a
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
name: Commitlint

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches:
- main

permissions:
contents: read
branches: [ main ]

jobs:
commitlint:
if: ${{ github.event.pull_request.merged != true }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Install dependencies
run: npm i -g @commitlint/cli @commitlint/config-conventional
- name: Validate all commits from PR
run: commitlint --config ./.commitlintrc.json --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
call:
uses: opiproject/opi-smbios-bridge/.github/workflows/commitlint.yml@main
secrets: inherit

0 comments on commit a45dc6a

Please sign in to comment.