ci: replace manual convco check and git hook by a dedicated ci step

This commit is contained in:
Alexandre Pasmantier 2025-03-10 22:14:33 +01:00
parent ed28da325f
commit 7317765f19
2 changed files with 7 additions and 8 deletions

View File

@ -46,3 +46,10 @@ jobs:
components: clippy
- name: Clippy Check
run: cargo clippy -- -D warnings
conventional-commits:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webiny/action-conventional-commits@v1.3.0

View File

@ -6,10 +6,6 @@ setup:
@mkdir -p .git/hooks
@echo "make fix" > .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
@echo "installing convco..."
@cargo install convco
@echo "make check-commits" > .git/hooks/pre-push
@chmod +x .git/hooks/pre-push
@echo "Done"
clean:
@ -62,7 +58,3 @@ publish:
update-changelog:
@echo "Updating changelog"
@git cliff -o CHANGELOG.md
check-commits:
@echo "Checking commits (see https://www.conventionalcommits.org/)"
@convco check origin/main..HEAD