From 48ff0e9f3a933c162a25659b5dfdb149c4ddfd90 Mon Sep 17 00:00:00 2001 From: Quentin BEY Date: Fri, 5 Sep 2025 14:44:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(ci)=20always=20run=20all=20git-lin?= =?UTF-8?q?t=20steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-lint steps are independant and we would like to have all checks at once. Using the `if: always()` instruction should ensure all steps should be run event if the previous fails. thanks @lunika --- .github/workflows/people.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index b61cc59..18b2902 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -28,14 +28,18 @@ jobs: - name: show run: git log - name: Enforce absence of print statements in code + if: always() run: | ! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/people.yml' | grep -E "(\bprint\(|\bpprint\()" - name: Check absence of fixup commits + if: always() run: | ! git log | grep 'fixup!' - name: Install gitlint + if: always() run: pip install --user requests gitlint - name: Lint commit messages added to main + if: always() run: ~/.local/bin/gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD check-changelog: