From 134b1543b39ab6c74afb589d158895901ce661cd Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sun, 14 Dec 2025 22:09:43 +0100 Subject: [PATCH] chore(changelog): improve changelog script output and formatting --- scripts/generate-unreleased-changelog.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/generate-unreleased-changelog.sh b/scripts/generate-unreleased-changelog.sh index 23c1eda..e1f2839 100755 --- a/scripts/generate-unreleased-changelog.sh +++ b/scripts/generate-unreleased-changelog.sh @@ -8,14 +8,16 @@ GIT_BRANCH="${GITHUB_REF##refs/heads/}" # === Step 1: Generate Changelog (only if file exists or on main) === if [[ -f "$CHANGELOG_FILE" || "$GIT_BRANCH" == "main" ]]; then echo "📄 Generating $CHANGELOG_FILE using git-cliff..." - git-cliff -c "$CLIFF_CONFIG" --context \ -| "${GITHUB_ACTION_PATH}/scripts/augment_context.py" \ -| git-cliff -c "$CLIFF_CONFIG" --from-context - -o "$CHANGELOG_FILE" + git-cliff -c "$CLIFF_CONFIG" --context | + "${GITHUB_ACTION_PATH}/scripts/augment_context.py" | + git-cliff -c "$CLIFF_CONFIG" --from-context - -o "$CHANGELOG_FILE" else echo "â„šī¸ $CHANGELOG_FILE does not exist and branch is not 'main'. Skipping generation." exit 0 fi +echo "✅ $CHANGELOG_FILE generation completed." + # === Step 2: Commit and push changes if any === git add "$CHANGELOG_FILE"