Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
ef3ac462ba | |||
d27a0cbd80
|
|||
1d9659b6df
|
|||
40ca5c987d | |||
d8700af97d
|
|||
856565d87f
|
|||
6b937d6408 | |||
d11131d9b2
|
|||
e5f5084931
|
|||
5eafa06477 | |||
039a14a473
|
22
CHANGELOG.md
22
CHANGELOG.md
@@ -2,6 +2,28 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.4.0](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.6..v0.4.0) - 2025-06-29
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- *(action)* Add support for non-main branch releases - ([1d9659b](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/1d9659b6df0d63ed17432e677ee77a4c17d2f2f3))
|
||||
|
||||
## [0.3.6](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.5..v0.3.6) - 2025-06-29
|
||||
|
||||
### ◀️ Revert
|
||||
|
||||
- Integrate gha-timer for step timing - ([856565d](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/856565d87f2575d6883705ddde3d177555c1bd86))
|
||||
|
||||
## [0.3.5](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.4..v0.3.5) - 2025-06-29
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
- *(action)* Integrate gha-timer for step timing - ([e5f5084](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/e5f50849316f5dc0b045ac696c3628e610bae695))
|
||||
|
||||
### ◀️ Revert
|
||||
|
||||
- Improve CI readability with grouped git setup logs - ([039a14a](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/039a14a473493fd74fb61b60910652db3cfd5976))
|
||||
|
||||
## [0.3.4](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.2..v0.3.4) - 2025-06-29
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
@@ -14,6 +14,10 @@ inputs:
|
||||
description: "Commit-Autore-Mail"
|
||||
required: false
|
||||
default: ""
|
||||
allow-non-main-release:
|
||||
description: "Allow publishing releases from branches other than 'main'."
|
||||
required: false
|
||||
default: "false"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@@ -25,6 +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 }}
|
||||
run: |
|
||||
${{ github.action_path }}/scripts/detect-version-change.sh
|
||||
|
||||
|
@@ -6,14 +6,17 @@ GIT_REF="${GITHUB_REF:-}"
|
||||
COMMIT_BEFORE="${GITHUB_EVENT_BEFORE:-}"
|
||||
COMMIT_AFTER="${GITHUB_SHA:-}"
|
||||
VERSION_FILE="VERSION"
|
||||
ALLOW_NON_MAIN_RELEASE="${ALLOW_NON_MAIN_RELEASE:-false}"
|
||||
|
||||
echo "🔍 Comparing commits:"
|
||||
echo "Before: $COMMIT_BEFORE"
|
||||
echo "After: $COMMIT_AFTER"
|
||||
echo "Ref: $GIT_REF"
|
||||
echo "Allow release from non-main branches: $ALLOW_NON_MAIN_RELEASE"
|
||||
|
||||
# Check branch condition
|
||||
if [[ "$GIT_REF" != "refs/heads/main" ]]; then
|
||||
echo "Not on 'main' branch – skipping version check."
|
||||
if [[ "$ALLOW_NON_MAIN_RELEASE" != "true" && "$GIT_REF" != "refs/heads/main" ]]; then
|
||||
echo "🚫 Not on 'main' branch and non-main releases are disabled – skipping version check."
|
||||
echo "version_changed=false" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
@@ -1,9 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Open a log group for better readability in CI pipelines
|
||||
echo "::group::🔧 Git Author Setup"
|
||||
|
||||
# Optional inputs (positionals) or fallback to environment variables
|
||||
AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}"
|
||||
AUTHOR_EMAIL="${2:-${CI_COMMIT_AUTHOR_EMAIL:-ci@bot.none}}"
|
||||
@@ -21,17 +18,12 @@ CONFIGURED_EMAIL=$(git config --global user.email)
|
||||
|
||||
if [[ "$CONFIGURED_NAME" != "$AUTHOR_NAME" ]]; then
|
||||
echo "❌ Error: Git username was not set correctly!" >&2
|
||||
echo "::endgroup::"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$CONFIGURED_EMAIL" != "$AUTHOR_EMAIL" ]]; then
|
||||
echo "❌ Error: Git email was not set correctly!" >&2
|
||||
echo "::endgroup::"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Git configuration completed successfully."
|
||||
|
||||
# Close the log group
|
||||
echo "::endgroup::"
|
||||
|
Reference in New Issue
Block a user