mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00

Previously, the actions were duplicated, due to the fact when developing we often create feature branches and open pull requests. This new setup requires us to open pull requests to trigger the CI.
19 lines
485 B
YAML
19 lines
485 B
YAML
name: Check branch conformity
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
prevent-fixup-commits:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
target: debian-bookworm
|
|
distro: debian
|
|
version: bookworm
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- 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
|