Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
313ace34fe | |||
df2ba3b060
|
|||
27ee1746db
|
|||
03add717be | |||
01986944f0
|
|||
c25b2e9cd5
|
|||
f44f457e6b | |||
169d9ec4db
|
|||
cbcd5e2ab7
|
18
CHANGELOG.md
18
CHANGELOG.md
@@ -2,6 +2,24 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.4.3](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.4.2..v0.4.3) - 2025-06-29
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(script)* Use dynamic branch name for git push - ([27ee174](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/27ee1746dbc7b2c6c1564a04c024337ff158a9c5))
|
||||
|
||||
## [0.4.2](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.4.1..v0.4.2) - 2025-06-29
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(action)* Update conditions for version detection - ([c25b2e9](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/c25b2e9cd551e923b84cd144b818940fd5e1ccff))
|
||||
|
||||
## [0.4.1](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.4.0..v0.4.1) - 2025-06-29
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
- *(action)* Standardize input key naming - ([cbcd5e2](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/cbcd5e2ab7e7f2498021d5043da9999f62dcf44d))
|
||||
|
||||
## [0.4.0](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.6..v0.4.0) - 2025-06-29
|
||||
|
||||
### 🚀 Features
|
||||
|
@@ -14,7 +14,7 @@ inputs:
|
||||
description: "Commit-Autore-Mail"
|
||||
required: false
|
||||
default: ""
|
||||
allow-non-main-release:
|
||||
allow_non_main_release:
|
||||
description: "Allow publishing releases from branches other than 'main'."
|
||||
required: false
|
||||
default: "false"
|
||||
@@ -29,7 +29,7 @@ runs:
|
||||
GITHUB_EVENT_BEFORE: ${{ github.event.before || '' }}
|
||||
GITHUB_SHA: ${{ github.sha || '' }}
|
||||
GITHUB_REF: ${{ github.ref || '' }}
|
||||
ALLOW_NON_MAIN_RELEASE: ${{ inputs.allow-non-main-release }}
|
||||
ALLOW_NON_MAIN_RELEASE: ${{ inputs.allow_non_main_release }}
|
||||
run: |
|
||||
${{ github.action_path }}/scripts/detect-version-change.sh
|
||||
|
||||
@@ -52,13 +52,13 @@ runs:
|
||||
"${{ inputs.author_email }}"
|
||||
|
||||
- name: Generate and commit changelog (unreleased)
|
||||
if: steps.detect.outputs.version_changed == 'false' || github.ref != 'refs/heads/main'
|
||||
if: steps.detect.outputs.version_changed == 'false'
|
||||
shell: bash
|
||||
run: |
|
||||
${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
|
||||
|
||||
- name: Release from VERSION
|
||||
if: steps.detect.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
|
||||
if: steps.detect.outputs.version_changed == 'true'
|
||||
shell: bash
|
||||
env:
|
||||
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
|
||||
|
@@ -52,6 +52,7 @@ VERSION_FILE="VERSION"
|
||||
CHANGELOG_FILE="CHANGELOG.md"
|
||||
CLIFF_CONFIG="cliff.toml"
|
||||
RELEASE_BODY_TMP="$(mktemp)"
|
||||
GIT_BRANCH="${GITHUB_REF##refs/heads/}"
|
||||
|
||||
# === Step 1: Read version ===
|
||||
if [[ ! -f "$VERSION_FILE" ]]; then
|
||||
@@ -87,7 +88,7 @@ if git diff --cached --quiet; then
|
||||
else
|
||||
echo "📝 Committing updated changelog"
|
||||
git commit -m "chore(changelog): update changelog for v$VERSION"
|
||||
git push origin main
|
||||
git push origin "$GIT_BRANCH"
|
||||
fi
|
||||
|
||||
# === Step 4: Create tag if necessary ===
|
||||
|
Reference in New Issue
Block a user