diff options
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97537d66..cf9655a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,23 @@ concurrency: cancel-in-progress: true jobs: + conventional-commits: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Validate commit subjects + if: github.event_name == 'push' + run: python3 scripts/conventional_commits.py --range "${{ github.event.before }}..${{ github.event.after }}" + + - name: Validate PR title + if: github.event_name == 'pull_request' + run: python3 scripts/conventional_commits.py "${{ github.event.pull_request.title }}" + check: name: check (${{ matrix.os }}) strategy: |
