5 Commits

Author SHA1 Message Date
1187f6f3d2 chore(version): bump version to 1.2.6
All checks were successful
Auto Changelog & Release / release (push) Successful in 8s
Create Major Version Tag / update-major-tag (release) Successful in 5s
2025-12-14 22:09:55 +01:00
134b1543b3 chore(changelog): improve changelog script output and formatting 2025-12-14 22:09:43 +01:00
473db9aa2d chore(version): bump version to 1.2.5
All checks were successful
Auto Changelog & Release / release (push) Successful in 8s
Create Major Version Tag / update-major-tag (release) Successful in 7s
2025-12-14 22:04:05 +01:00
85901d62fc chore(changelog): add Gitea env vars to changelog and release scripts 2025-12-14 22:03:53 +01:00
8cdf29d1af Revert "fix(config): update template to generalize gitea remote and add postprocessors"
All checks were successful
Auto Changelog & Release / release (push) Successful in 17s
This reverts commit 51cfcdc648.
2025-12-14 22:01:04 +01:00
4 changed files with 15 additions and 10 deletions

View File

@@ -1 +1 @@
1.2.4
1.2.6

View File

@@ -66,6 +66,9 @@ runs:
- name: Generate and commit changelog (unreleased)
if: steps.detect.outputs.version_changed == 'false'
shell: bash
env:
GITEA_TOKEN: ${{ inputs.token || '' }}
GITEA_API_URL: ${{ github.server_url }}/api/v1
run: |
${{ github.action_path }}/scripts/generate-unreleased-changelog.sh
@@ -74,5 +77,7 @@ runs:
shell: bash
env:
RELEASE_PUBLISH_TOKEN: ${{ inputs.token || '' }}
GITEA_TOKEN: ${{ inputs.token || '' }}
GITEA_API_URL: ${{ github.server_url }}/api/v1
run: |
${{ github.action_path }}/scripts/release-from-version.sh

View File

@@ -4,15 +4,13 @@
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.
# [remote.gitea] # Disabled by default
# owner = "%OWNER%"
# repo = "%REPO%"
[remote.gitea]
owner = "%OWNER%"
repo = "%REPO%"
[changelog]
postprocessors = [
{ pattern = '<GITEA_URL>', replace = "https://git.0xmax42.io" }, # replace gitea url
{ pattern = '<OWNER>', replace = "%OWNER%" }, # replace owner
{ pattern = '<REPO>', replace = "%REPO%" }, # replace repo
]
header = """
@@ -22,7 +20,7 @@ All notable changes to this project will be documented in this file.\n
body = """
{%- macro remote_url() -%}
<GITEA_URL>/<OWNER>/<REPO>
<GITEA_URL>/{{ remote.gitea.owner }}/{{ remote.gitea.repo }}
{%- endmacro -%}
{%- macro indent(text, prefix=" ") -%}

View File

@@ -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"