Skip to content

Commit 996ad64

Browse files
committed
chore(ci): fix git-cliff installation and update release workflow
1 parent d4aa51d commit 996ad64

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,16 @@ jobs:
5757
# ------------------------------
5858
- name: Install git-cliff
5959
run: |
60-
curl -sS https://raw.githubusercontent.com/orhun/git-cliff/main/install.sh | bash
61-
sudo mv cliff /usr/local/bin/git-cliff
60+
LATEST=$(curl -s https://api.github.com/repos/orhun/git-cliff/releases/latest \
61+
| grep browser_download_url \
62+
| grep x86_64-unknown-linux-musl.tar.gz \
63+
| cut -d '"' -f 4)
64+
65+
echo "Downloading: $LATEST"
66+
curl -sSL "$LATEST" -o git-cliff.tar.gz
67+
68+
tar -xzf git-cliff.tar.gz
69+
sudo mv git-cliff*/git-cliff /usr/local/bin/git-cliff
6270
6371
- name: Generate changelog
6472
run: |

0 commit comments

Comments
 (0)