summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-06-02 15:22:22 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2026-06-09 13:12:54 -0400
commitbfb8679bd95e9387b848ef856e8eb6f1a4a4bac5 (patch)
treef29022574e7c12b19b1e0dafd4d054ebcae4ed34
parent46c5e76f0bcc76bfce19ad7ba07f716fc653a822 (diff)
Made check-commit-suffix job check only relevant commits.
Failing to set $BASE meant other commits on the target branch were checked.
-rw-r--r--.github/workflows/check_commit_messages.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml
index 3aef211f8d..0dbb36a999 100644
--- a/.github/workflows/check_commit_messages.yml
+++ b/.github/workflows/check_commit_messages.yml
@@ -22,7 +22,7 @@ jobs:
with:
persist-credentials: false
- - name: Calculate commit prefix
+ - name: Set base and calculate commit prefix
id: vars
env:
BASE: ${{ github.event.pull_request.base.ref }}
@@ -80,6 +80,11 @@ jobs:
with:
persist-credentials: false
+ - name: Set base
+ env:
+ BASE: ${{ github.event.pull_request.base.ref }}
+ run: echo "BASE=$BASE" >> $GITHUB_ENV
+
- name: Fetch relevant branches
run: |
git fetch origin $BASE:base --depth=1