mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-01 11:12:24 +02:00

Improve the commit message check, by logging only the commit title, and doing away with the extra spaces.
19 lines
477 B
YAML
19 lines
477 B
YAML
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 --pretty=format:%s origin/main..HEAD | grep -ie '^fixup\|^wip' && exit 1 || true
|