From 16043fe50b9656c1cf1a6470db9beeca864c04f5 Mon Sep 17 00:00:00 2001 From: Jan Was Date: Thu, 4 Aug 2022 11:56:24 +0200 Subject: [PATCH] In CI detect and block merge and fixup commits Merge commits will cause the pipeline to fail, because they're never allowed. Fixup commits on the other hand are helpful during longer reviews and shouldn't cause the run to fail. Instead, the action creates a review and requests changes. --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 989ae3316d25..41f94a3a8942 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,16 @@ jobs: - name: Test Docker Image run: core/docker/build.sh + check-commits: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Check Commits + uses: trinodb/github-actions/block-commits@c2991972560c5219d9ae5fb68c0c9d687ffcdd10 + with: + action-merge: fail + action-fixup: request-changes + error-prone-checks: runs-on: ubuntu-latest timeout-minutes: 45