From ef94f9087683f615bf5c926b38fb8c981351247c Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:46:27 -0500 Subject: [PATCH] release: match indented PFUI_CLASSIC_API_LATEST in pin step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wrapping the version-check block in a do…end indented every constant by two spaces, so the sed pattern's ^local anchor stopped matching and the followup grep returned exit 1, killing the step under bash -e. Captures the leading whitespace into \1 so the indent is preserved through the substitution, and matches the two-space alignment between LATEST and = so we don't accidentally hit LATEST_URL on the line below. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7be9d3bf..9b2d6e1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,8 @@ jobs: IFS=. read -r MAJOR MINOR PATCH <<<"$LATEST" PACKED=$((MAJOR * 10000 + MINOR * 100 + PATCH)) echo "Pinning PFUI_CLASSIC_API_LATEST to $LATEST ($PACKED)" - sed -i "s/^local PFUI_CLASSIC_API_LATEST = [0-9]*/local PFUI_CLASSIC_API_LATEST = $PACKED/" pfUI.lua - grep '^local PFUI_CLASSIC_API_' pfUI.lua + sed -i "s/^\([[:space:]]*\)local PFUI_CLASSIC_API_LATEST = [0-9]*/\1local PFUI_CLASSIC_API_LATEST = $PACKED/" pfUI.lua + grep 'local PFUI_CLASSIC_API_' pfUI.lua env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}