Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fd639d6a4b | |||
|
eb2e19639a
|
|||
|
5cb6dbddfc
|
|||
|
1187f6f3d2
|
|||
|
134b1543b3
|
@@ -2,6 +2,12 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.2.7](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v1.2.6..v1.2.7) - 2025-12-14
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(scripts)* Set default git-cliff version to 2.10.1 - ([5cb6dbd](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/5cb6dbddfc37b72fb647d7649aefc59e3dc01345))
|
||||
|
||||
## [1.2.4](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v1.2.3..v1.2.4) - 2025-12-14
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ REPO="orhun/git-cliff"
|
||||
ARCH_OS="x86_64-unknown-linux-gnu"
|
||||
INSTALL_DIR="/usr/local/bin"
|
||||
if [[ -z "${1:-}" ]]; then
|
||||
VERSION="latest"
|
||||
VERSION="2.10.1"
|
||||
else
|
||||
VERSION="$1"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user