Skip to content

Commit 851ba61

Browse files
committed
fix(ci): resolve issues with release workflows
- Fix changelog generation in release-prepare.yml: - Remove invalid --strip header,footer parameter and use --strip all instead - Remove --config flag when cliff.toml might not exist - Add warning message when cliff.toml is missing
1 parent b0cbe40 commit 851ba61

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release-prepare.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,16 @@ jobs:
8484
id: changelog
8585
run: |
8686
set -e
87+
# Check if cliff.toml exists
88+
if [ ! -f "cliff.toml" ]; then
89+
echo "Warning: cliff.toml not found, will use default configuration"
90+
fi
91+
8792
# Generate changelog using git-cliff
88-
git-cliff --config cliff.toml --tag "v${{ inputs.version }}" --output CHANGELOG.md
93+
git-cliff --tag "v${{ inputs.version }}" --output CHANGELOG.md
8994
9095
# Generate a shorter version for PR description
91-
git-cliff --config cliff.toml --tag "v${{ inputs.version }}" --strip header,footer > .changelog_content
96+
git-cliff --tag "v${{ inputs.version }}" --strip all > .changelog_content
9297
9398
git add CHANGELOG.md
9499
git commit -m "docs: add changelog for v${{ inputs.version }}"

0 commit comments

Comments
 (0)