aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/commit-validation.yml4
1 files changed, 2 insertions, 2 deletions
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) {