From 23a12bad2f8b797e38249d278d23a9d04ee8605d Mon Sep 17 00:00:00 2001 From: deeplow Date: Tue, 13 Feb 2024 11:49:03 +0000 Subject: [PATCH] CI: Prevent FIXUP commits --- .github/workflows/check_push.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/check_push.yml diff --git a/.github/workflows/check_push.yml b/.github/workflows/check_push.yml new file mode 100644 index 000000000..61d72fcab --- /dev/null +++ b/.github/workflows/check_push.yml @@ -0,0 +1,18 @@ +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: preven fixup commits + run: | + git fetch origin + git diff origin/main HEAD | grep -i FIXUP \ No newline at end of file