We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 583691b commit 4f2127bCopy full SHA for 4f2127b
1 file changed
.github/workflows/release-packages.yml
@@ -24,8 +24,11 @@ jobs:
24
25
- name: Install git-cliff
26
run: |
27
- curl -sL https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-x86_64-unknown-linux-gnu.tar.gz \
28
- | tar -xz -C /usr/local/bin git-cliff
+ URL=$(gh release view --repo orhun/git-cliff --json assets \
+ --jq '.assets[] | select(.name | test("x86_64-unknown-linux-gnu.tar.gz$")) | .url')
29
+ curl -sL "$URL" | tar -xz -C /usr/local/bin --strip-components=1 --wildcards '*/git-cliff'
30
+ env:
31
+ GH_TOKEN: ${{ github.token }}
32
33
- name: Generate changelog
34
0 commit comments