Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
6b937d6408 | |||
d11131d9b2
|
|||
e5f5084931
|
|||
5eafa06477 | |||
039a14a473
|
10
CHANGELOG.md
10
CHANGELOG.md
@@ -2,6 +2,16 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [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
|
||||
|
12
action.yml
12
action.yml
@@ -18,6 +18,8 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: fulcrumgenomics/gha-timer@v1
|
||||
|
||||
- name: Detect version change
|
||||
shell: bash
|
||||
id: detect
|
||||
@@ -26,7 +28,17 @@ runs:
|
||||
GITHUB_SHA: ${{ github.sha || '' }}
|
||||
GITHUB_REF: ${{ github.ref || '' }}
|
||||
run: |
|
||||
gha-timer start --name "Detect Version Change"
|
||||
|
||||
${{ github.action_path }}/scripts/detect-version-change.sh
|
||||
exit_code=$?
|
||||
|
||||
if [[ $exit_code -eq 0 ]]; then
|
||||
gha-timer elapsed --outcome success --name "Detect Version Change"
|
||||
else
|
||||
gha-timer elapsed --outcome failure --name "Detect Version Change"
|
||||
exit $exit_code
|
||||
fi
|
||||
|
||||
- name: Read CLIFF_VERSION
|
||||
shell: bash
|
||||
|
@@ -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