summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2025-11-19 14:35:36 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2025-11-21 15:01:20 -0500
commit2baa8708b4f166d82f53ff8f8e565ebfd356e1dc (patch)
treef46620f3fcd31af1adceecc51e673fc7e0fcd27b
parent7e9f7bb669685c4daf6c9e6fea61339ce705f3e6 (diff)
[4.2.x] Simplified actions after applying zizmor auto-fixes.
Backport of 08f4901b3fd3f352ef9cea830d000aee73152556 from main.
-rw-r--r--.github/workflows/check_commit_messages.yml9
1 files changed, 3 insertions, 6 deletions
diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml
index ab115d96be..70f1dd7d1e 100644
--- a/.github/workflows/check_commit_messages.yml
+++ b/.github/workflows/check_commit_messages.yml
@@ -20,9 +20,8 @@ jobs:
- name: Calculate commit prefix
id: vars
env:
- GITHUB_EVENT_PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }}
+ BASE: ${{ github.event.pull_request.base.ref }}
run: |
- BASE="${GITHUB_EVENT_PULL_REQUEST_BASE_REF}"
echo "BASE=$BASE" >> $GITHUB_ENV
VERSION="${BASE#stable/}"
echo "prefix=[$VERSION]" >> $GITHUB_OUTPUT
@@ -30,9 +29,8 @@ jobs:
- name: Check PR title prefix
env:
TITLE: ${{ github.event.pull_request.title }}
- STEPS_VARS_OUTPUTS_PREFIX: ${{ steps.vars.outputs.prefix }}
+ PREFIX: ${{ steps.vars.outputs.prefix }}
run: |
- PREFIX="${STEPS_VARS_OUTPUTS_PREFIX}"
if [[ "$TITLE" != "$PREFIX"* ]]; then
echo "❌ PR title must start with the required prefix: $PREFIX"
exit 1
@@ -46,9 +44,8 @@ jobs:
- name: Check commit messages prefix
env:
- STEPS_VARS_OUTPUTS_PREFIX: ${{ steps.vars.outputs.prefix }}
+ PREFIX: ${{ steps.vars.outputs.prefix }}
run: |
- PREFIX="${STEPS_VARS_OUTPUTS_PREFIX}"
COMMITS=$(git rev-list base..pr)
echo "Checking commit messages for required prefix: $PREFIX"
FAIL=0