Skip to content

Commit a994aba

Browse files
committed
fix(release): Install git-cliff directly to avoid Docker build failure
Fixed Docker build failure: Problem: - orhun/git-cliff-action@v2 uses Docker container - Docker build failed on Ubuntu runner - Error: 'Build container for action use: orhun/git-cliff-action/v2/Dockerfile' Solution: - Replaced git-cliff-action with direct installation - Download git-cliff binary from GitHub releases - Install to /usr/local/bin/ - Run directly without Docker container Changes: 1. Added 'Install git-cliff' step: - Downloads git-cliff-linux-amd64.tar.gz - Extracts and installs to /usr/local/bin/ - Verifies installation with --version flag 2. Updated 'Generate changelog' step: - Now runs git-cliff directly - Uses same cliff.toml configuration - Generates CHANGELOG.md file Benefits: - No Docker container needed - Faster execution (no Docker build time) - More reliable (no platform compatibility issues) - Simpler workflow (direct binary execution) This resolves environment issue causing Docker build failures.
1 parent f5bd47d commit a994aba

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,22 @@ jobs:
5757
echo "changelog_exists=false" >> $GITHUB_OUTPUT
5858
echo "No changelog file found, will generate with git-cliff"
5959
60+
- name: Install git-cliff
61+
if: steps.changelog_check.outputs.changelog_exists == 'false'
62+
run: |
63+
# Install git-cliff
64+
wget -qO- https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-linux-amd64.tar.gz
65+
tar -xzf git-cliff-linux-amd64.tar.gz
66+
sudo mv git-cliff /usr/local/bin/
67+
git-cliff --version
68+
6069
- name: Generate changelog with git-cliff
6170
if: steps.changelog_check.outputs.changelog_exists == 'false'
62-
uses: orhun/git-cliff-action@v2
63-
with:
64-
config: cliff.toml
65-
output: CHANGELOG.md
66-
tag: ${{ steps.version.outputs.version }}
67-
args: --verbose
71+
run: |
72+
VERSION="${{ steps.version.outputs.version }}"
73+
74+
# Generate changelog
75+
git-cliff --config cliff.toml --tag "v${VERSION}" --verbose > CHANGELOG.md
6876
6977
- name: Format generated changelog
7078
if: steps.changelog_check.outputs.changelog_exists == 'false'

0 commit comments

Comments
 (0)