Skip to content

Commit 0b64417

Browse files
authored
🔧(ci) always run all git-lint steps (#1323)
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.
1 parent 57a505a commit 0b64417

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/impress.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@ jobs:
2525
- name: show
2626
run: git log
2727
- name: Enforce absence of print statements in code
28+
if: always()
2829
run: |
2930
! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/impress.yml' | grep "print("
3031
- name: Check absence of fixup commits
32+
if: always()
3133
run: |
3234
! git log | grep 'fixup!'
3335
- name: Install gitlint
36+
if: always()
3437
run: pip install --user requests gitlint
3538
- name: Lint commit messages added to main
39+
if: always()
3640
run: ~/.local/bin/gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD
3741

3842
check-changelog:

0 commit comments

Comments
 (0)