File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments