Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
6b937d6408 | |||
d11131d9b2
|
|||
e5f5084931
|
|||
5eafa06477 | |||
039a14a473
|
|||
36e60c24ac | |||
525d8bfc44
|
|||
a4ff409fd8
|
|||
b6151b793d
|
|||
374f30a502
|
|||
70ae9ebc85 | |||
94d69f193a
|
|||
b75e412192
|
@@ -14,6 +14,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: https://git.0xmax42.io/actions/auto-changelog-release-action@v0
|
uses: https://git.0xmax42.io/actions/auto-changelog-release-action@v0.3.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RELEASE_PUBLISH_TOKEN }}
|
token: ${{ secrets.RELEASE_PUBLISH_TOKEN }}
|
||||||
|
23
CHANGELOG.md
23
CHANGELOG.md
@@ -2,6 +2,29 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
||||||
|
|
||||||
|
- *(workflows)* Update action to specific version - ([a4ff409](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/a4ff409fd812a5ccd2291251de5cd2af9bb0e713))
|
||||||
|
- *(scripts)* Update file permissions to executable - ([374f30a](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/374f30a50206a426b8de7a0b78cde9ad4194469f))
|
||||||
|
|
||||||
|
## [0.3.2](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.1..v0.3.2) - 2025-06-29
|
||||||
|
|
||||||
|
### 🚜 Refactor
|
||||||
|
|
||||||
|
- *(action)* Simplify script invocation syntax - ([b75e412](https://git.0xmax42.io/actions/auto-changelog-release-action/commit/b75e4121928131c1a1c0cbdea954a4fd602edd1a))
|
||||||
|
|
||||||
## [0.3.1](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.0..v0.3.1) - 2025-06-29
|
## [0.3.1](https://git.0xmax42.io/actions/auto-changelog-release-action/compare/v0.3.0..v0.3.1) - 2025-06-29
|
||||||
|
|
||||||
### ⚙️ Miscellaneous Tasks
|
### ⚙️ Miscellaneous Tasks
|
||||||
|
27
action.yml
27
action.yml
@@ -18,6 +18,8 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
- uses: fulcrumgenomics/gha-timer@v1
|
||||||
|
|
||||||
- name: Detect version change
|
- name: Detect version change
|
||||||
shell: bash
|
shell: bash
|
||||||
id: detect
|
id: detect
|
||||||
@@ -26,33 +28,46 @@ runs:
|
|||||||
GITHUB_SHA: ${{ github.sha || '' }}
|
GITHUB_SHA: ${{ github.sha || '' }}
|
||||||
GITHUB_REF: ${{ github.ref || '' }}
|
GITHUB_REF: ${{ github.ref || '' }}
|
||||||
run: |
|
run: |
|
||||||
bash ${{ github.action_path }}/scripts/detect-version-change.sh
|
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
|
- name: Read CLIFF_VERSION
|
||||||
shell: bash
|
shell: bash
|
||||||
id: cliff_version
|
id: cliff_version
|
||||||
run: bash ${{ github.action_path }}/scripts/read-cliff-version.sh
|
run: |
|
||||||
|
${{ github.action_path }}/scripts/read-cliff-version.sh
|
||||||
|
|
||||||
- name: Install git-cliff
|
- name: Install git-cliff
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash ${{ github.action_path }}/scripts/install-git-cliff.sh "${{ steps.cliff_version.outputs.version }}"
|
${{ github.action_path }}/scripts/install-git-cliff.sh "${{ steps.cliff_version.outputs.version }}"
|
||||||
|
|
||||||
- name: Set up git
|
- name: Set up git
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash ${{ github.action_path }}/scripts/setup-git.sh \
|
${{ github.action_path }}/scripts/setup-git.sh \
|
||||||
"${{ inputs.author_name }}" \
|
"${{ inputs.author_name }}" \
|
||||||
"${{ inputs.author_email }}"
|
"${{ inputs.author_email }}"
|
||||||
|
|
||||||
- name: Generate and commit changelog (unreleased)
|
- 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' || github.ref != 'refs/heads/main'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: bash ${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
|
run: |
|
||||||
|
${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
|
||||||
|
|
||||||
- name: Release from VERSION
|
- name: Release from VERSION
|
||||||
if: steps.detect.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
|
if: steps.detect.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
|
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
|
||||||
run: bash ${{ github.action_path }}/scripts/release-from-version.sh
|
run: |
|
||||||
|
${{ github.action_path }}/scripts/release-from-version.sh
|
||||||
|
0
scripts/generate-unreleased-changelog.sh
Normal file → Executable file
0
scripts/generate-unreleased-changelog.sh
Normal file → Executable file
0
scripts/read-cliff-version.sh
Normal file → Executable file
0
scripts/read-cliff-version.sh
Normal file → Executable file
0
scripts/release-from-version.sh
Normal file → Executable file
0
scripts/release-from-version.sh
Normal file → Executable file
8
scripts/setup-git.sh
Normal file → Executable file
8
scripts/setup-git.sh
Normal file → Executable file
@@ -1,9 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
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
|
# Optional inputs (positionals) or fallback to environment variables
|
||||||
AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}"
|
AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}"
|
||||||
AUTHOR_EMAIL="${2:-${CI_COMMIT_AUTHOR_EMAIL:-ci@bot.none}}"
|
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
|
if [[ "$CONFIGURED_NAME" != "$AUTHOR_NAME" ]]; then
|
||||||
echo "❌ Error: Git username was not set correctly!" >&2
|
echo "❌ Error: Git username was not set correctly!" >&2
|
||||||
echo "::endgroup::"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$CONFIGURED_EMAIL" != "$AUTHOR_EMAIL" ]]; then
|
if [[ "$CONFIGURED_EMAIL" != "$AUTHOR_EMAIL" ]]; then
|
||||||
echo "❌ Error: Git email was not set correctly!" >&2
|
echo "❌ Error: Git email was not set correctly!" >&2
|
||||||
echo "::endgroup::"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "✅ Git configuration completed successfully."
|
echo "✅ Git configuration completed successfully."
|
||||||
|
|
||||||
# Close the log group
|
|
||||||
echo "::endgroup::"
|
|
||||||
|
Reference in New Issue
Block a user