From 66bb57e482d0ef58d4a8871c100d05ee5276e159 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Mon, 6 Nov 2023 19:11:15 +0000 Subject: [PATCH] ci: commit number 1 --- .github/workflows/main.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0ef7a88..4aa88bd 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -31,9 +31,11 @@ jobs: - uses: pre-commit/action@v3.0.0 # TODO: lint range of commits, not only the latest pushed - - name: Gitlint + - name: Gitlint on range # yamllint disable-line rule:line-length - if: ${{ github.after != github.sha }} - run: gitlint --debug --commits "${{ github.after }}..${{ github.sha }}" - if: ${{ github.after == github.sha }} - run: gitlint --debug --commits "${{ github.sha }}" + run: | + if test ${{ github.after }} == ${{ github.sha }}; then + gitlint --debug --commits "${{ github.sha }}" + else + gitlint --debug --commits "${{ github.after }}..${{ github.sha }}" + fi