mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
CI: Prevent fixup / wip commits
This commit is contained in:
parent
75f8d76c5b
commit
f569695bb0
1 changed files with 19 additions and 0 deletions
19
.github/workflows/check_push.yml
vendored
Normal file
19
.github/workflows/check_push.yml
vendored
Normal 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
|
Loading…
Reference in a new issue