CI: Prevent fixup / wip commits

This commit is contained in:
deeplow 2024-02-13 11:49:03 +00:00
parent 75f8d76c5b
commit f569695bb0
No known key found for this signature in database
GPG key ID: 577982871529A52A

19
.github/workflows/check_push.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Check branch conformity
on:
push:
jobs:
prevent-fixup-commits:
runs-on: ubuntu-latest
env:
target: debian-bookworm
distro: debian
version: bookworm
steps:
- name: Checkout
uses: actions/checkout@v3
- name: prevent fixup commits
run: |
git fetch origin
git status
git log origin/main..HEAD | grep -ie '^ fixup\|^ wip' && exit 1 || true