Skip to content

Commit c3c93b9

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

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,28 @@ jobs:
5353
run: yarn build
5454

5555
# ------------------------------
56-
# Auto Changelog Generation
56+
# Install git-cliff (LATEST release, correct filter)
5757
# ------------------------------
5858
- name: Install git-cliff
5959
run: |
6060
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)
61+
| jq -r '.assets[] | select(.name | test("x86_64-unknown-linux-musl.tar.gz$")) | .browser_download_url')
6462
6563
echo "Downloading: $LATEST"
64+
6665
curl -sSL "$LATEST" -o git-cliff.tar.gz
6766
6867
tar -xzf git-cliff.tar.gz
6968
sudo mv git-cliff*/git-cliff /usr/local/bin/git-cliff
7069
70+
# ------------------------------
71+
# Generate Changelog
72+
# ------------------------------
7173
- name: Generate changelog
7274
run: |
7375
git-cliff --tag ${GITHUB_REF#refs/tags/} > RELEASE_CHANGELOG.md
76+
echo "Generated changelog:"
77+
cat RELEASE_CHANGELOG.md
7478
7579
# ------------------------------
7680
# Package Release Files

0 commit comments

Comments
 (0)