Skip to content

Commit 2e98dda

Browse files
committed
Fix git-cliff installation in release workflow
1 parent fbced16 commit 2e98dda

1 file changed

Lines changed: 3 additions & 27 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -382,33 +382,9 @@ jobs:
382382
test -f "sbom/manifest.spdx.json" || { echo "Missing SBOM manifest"; exit 1; }
383383
384384
- name: Install git-cliff
385-
shell: bash
386-
env:
387-
GIT_CLIFF_VERSION: "2.10.0"
388-
run: |
389-
set -euo pipefail
390-
391-
archive="git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
392-
checksums="git-cliff-${GIT_CLIFF_VERSION}-checksums.txt"
393-
base_url="https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}"
394-
395-
curl -fsSL "$base_url/$archive" -o "$archive"
396-
curl -fsSL "$base_url/$checksums" -o "$checksums"
397-
398-
grep " ${archive}$" "$checksums" > expected-checksum.txt
399-
sha256sum --check expected-checksum.txt
400-
401-
temp_dir="$(mktemp -d)"
402-
tar -xzf "$archive" -C "$temp_dir"
403-
404-
binary_path="$(find "$temp_dir" -type f -name git-cliff | head -n 1)"
405-
if [ -z "$binary_path" ]; then
406-
echo "Unable to locate git-cliff binary after extraction"
407-
exit 1
408-
fi
409-
410-
sudo install -m 0755 "$binary_path" /usr/local/bin/git-cliff
411-
git-cliff --version
385+
uses: taiki-e/install-action@v2
386+
with:
387+
tool: git-cliff@2.10.0
412388

413389
- name: Generate changelog
414390
id: git-cliff

0 commit comments

Comments
 (0)