fix(ci): resolve git-cliff download URL dynamically
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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user