2024-09-08 11:16:37 +00:00
|
|
|
---
|
|
|
|
name: development
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
commit-check:
|
|
|
|
name: Check commit compliance
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install commitizen
|
|
|
|
run: pip3 install commitizen
|
|
|
|
shell: bash
|
2024-09-09 18:51:06 +00:00
|
|
|
working-directory: ${{ gitea.workspace }}
|
2024-09-08 11:16:37 +00:00
|
|
|
|
|
|
|
- name: Verify commit message compliance
|
|
|
|
run: |
|
|
|
|
echo "cz check --message '${{ github.event.head_commit.message }}'"
|
|
|
|
cz check --message "${{ github.event.head_commit.message }}"
|
|
|
|
shell: bash
|
2024-09-09 18:51:06 +00:00
|
|
|
working-directory: ${{ gitea.workspace }}
|