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