From b9b8343645f0ba454de83268ffc1d67b3e8aa034 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 26 Dec 2023 22:46:56 -0800 Subject: Fix commit-validation CI. Hopefully. See #9286. --- .github/workflows/commit-validation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/commit-validation.yml') diff --git a/.github/workflows/commit-validation.yml b/.github/workflows/commit-validation.yml index 547b374fa..45eb55214 100644 --- a/.github/workflows/commit-validation.yml +++ b/.github/workflows/commit-validation.yml @@ -1,5 +1,5 @@ name: commit-validation -on: [ push, pull_request ] +on: [ pull_request ] permissions: contents: read @@ -16,7 +16,7 @@ jobs: result-encoding: json script: | var longlines = 0; - const commits = ${{ toJSON(github.event.commits) }} + const commits = ${{ toJSON(github.event.pull_request.commits) }} for (const commit of commits) { for (const line of commit.message.split('\n')) { if (line.length > 78) { -- cgit v1.2.3