From 916b3daabfd455b1b7630b84911c5ec2f1916931 Mon Sep 17 00:00:00 2001 From: Travis Turk <55367187+turkosaurus@users.noreply.github.com> Date: Sun, 28 Jun 2026 02:47:01 -0600 Subject: [PATCH] ci: only skip release when marker is on its own line The skip check matched the marker as a substring anywhere in the commit message, so a prose mention in the body skipped the release. Match the whole line instead (grep -x). --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d155a18..104d82b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,9 +27,11 @@ jobs: id: ver run: | msg=$(git log -1 --pretty=%B) - if echo "$msg" | grep -qiF '[skip release]'; then + # match only when [skip release] is on a line by itself, so a prose + # mention in the commit body doesn't accidentally skip the release. + if echo "$msg" | grep -qixF '[skip release]'; then echo "skip=true" >> "$GITHUB_OUTPUT" - echo "commit requests [skip release]; skipping" + echo "commit requests skip on its own line; skipping" exit 0 fi