From f645a775c9f926b2fff1859ffc634daac12b1a9a Mon Sep 17 00:00:00 2001 From: Nathan Nutter Date: Mon, 2 Nov 2026 20:03:49 -0600 Subject: [PATCH] Recognize a binary formula when the tag is checked The formula for this tool will install the release binaries, so its url points at `/releases/download//` instead of the source archive. The tag check matched only the source archive, so it reported the formula as stale on every run and rewrote the tap each time. Match either shape. --- .github/workflows/update-tap.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-tap.yaml b/.github/workflows/update-tap.yaml index c647217..dc05a78 100644 --- a/.github/workflows/update-tap.yaml +++ b/.github/workflows/update-tap.yaml @@ -71,7 +71,8 @@ jobs: FORMULA_NAME: ${{ env.FORMULA_NAME }} TAG: ${{ steps.release.outputs.tag }} run: | - if grep -Fq "/archive/refs/tags/${TAG}.tar.gz" "Formula/${FORMULA_NAME}.rb"; then + if grep -Fq "/archive/refs/tags/${TAG}.tar.gz" "Formula/${FORMULA_NAME}.rb" || + grep -Fq "/releases/download/${TAG}/" "Formula/${FORMULA_NAME}.rb"; then echo "needed=false" >> "$GITHUB_OUTPUT" echo "Formula ${FORMULA_NAME} already uses ${TAG}." else