From 78fff3fb33aad040bcea676e9784b8bfbfa8f001 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Tue, 2 Jun 2026 09:42:03 -0400 Subject: [PATCH] fix(ci): resolve git-cliff download URL dynamically MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Asset naming changed upstream — version number now embedded in filename (git-cliff-2.13.1-x86_64-... instead of git-cliff-x86_64-...). The latest/download shortcut 404s. Query GitHub API for current version and build the correct URL. --- .gitea/workflows/release-binaries.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release-binaries.yml b/.gitea/workflows/release-binaries.yml index 1dc261a..1777b8c 100644 --- a/.gitea/workflows/release-binaries.yml +++ b/.gitea/workflows/release-binaries.yml @@ -33,8 +33,9 @@ jobs: - name: Install git-cliff run: | - apk add --no-cache curl - curl -sSL https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-x86_64-unknown-linux-musl.tar.gz | tar xz + apk add --no-cache curl jq + VERSION=$(curl -sS https://api.github.com/repos/orhun/git-cliff/releases/latest | jq -r '.tag_name' | sed 's/^v//') + curl -sSL "https://github.com/orhun/git-cliff/releases/download/v${VERSION}/git-cliff-${VERSION}-x86_64-unknown-linux-musl.tar.gz" | tar xz mv git-cliff-*/git-cliff /usr/local/bin/ git-cliff --version