From 8194c8e8db86c96d876559005d75715623a438be Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Sun, 25 Oct 2026 23:49:37 +0100 Subject: [PATCH] ci(prepare-release): ignore workflow-only commits when deciding a bump --- .github/workflows/prepare-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 3e9b0aa..b9a0e29 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -71,7 +71,8 @@ jobs: BUMP="${{ inputs.bump }}" LAST_TAG=$(git tag --list "$TAG_GLOB" --sort=-v:refname | head -1) RANGE=""; [ -n "$LAST_TAG" ] && RANGE="${LAST_TAG}..HEAD" - SUBJECTS=$(git log $RANGE --no-merges --pretty=%s) + # workflow-only commits (.github/**) never warrant a release + SUBJECTS=$(git log $RANGE --no-merges --pretty=%s -- . ':!.github') FEAT=$(printf '%s\n' "$SUBJECTS" | grep -cE '^feat(\([^)]*\))?!?:' || true) CODE=$(printf '%s\n' "$SUBJECTS" | grep -vE '^(docs|ci)(\([^)]*\))?!?:' | grep -vE '^chore(\([^)]*\))?!?:' | grep -c . || true) DEPS=$(printf '%s\n' "$SUBJECTS" | grep -cE '^chore\(deps' || true)