diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 7eea86a0cdb..990b73e451c 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -38,7 +38,9 @@ jobs: - name: Check if build works for every commit run: | - PR_FIRST_COMMIT=$(git rev-list --reverse -1 origin/${{ github.event.pull_request.base.ref }}..HEAD) + COMMITS=$(git rev-list --reverse origin/${{ github.event.pull_request.base.ref }}..HEAD) + printf "Commits to check:\n$COMMITS\n" + PR_FIRST_COMMIT=$(printf $COMMITS | head -1) git rebase --exec "make -j $(nproc) tetragon tetra tetragon-bpf" $PR_FIRST_COMMIT^ - name: Failed commit during the build