From c9dba019b07672cb3c0859ac65c4e57980c22b0c Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Mon, 6 Nov 2023 19:36:29 +0000 Subject: [PATCH] ci: hey there you --- .github/workflows/main.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 26879a8..eaececb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -37,15 +37,15 @@ jobs: echo ${{ github.event.after }} echo ${{ github.event.base_ref }} echo ${{ github.event.before }} - echo ${{ github.event.commits.id }} echo ${{ github.event.compare }} - name: Gitlint # yamllint disable-line rule:line-length run: | - if test "${{ github.after }}" = "${{ github.sha }}" || - test -z "${{ github.after }}" + if test "${{ github.event.before }}" = "${{ github.event.after }}" || + test -z "${{ github.event.after }}" then - gitlint --debug --commit "${{ github.sha }}" + gitlint --debug --commit "${{ github.event.after }}" else - gitlint --debug --commits "${{ github.after }}..${{ github.sha }}" + base="$(git log --reverse --pretty=format:%H --ancestry-path ${{ github.event.before }}..HEAD | head -1)" + gitlint --debug --commits "$base..${{ github.sha }}" fi