From c4855ed3fbc0ada208690f90932710983daef392 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Wed, 28 May 2025 14:39:42 +0200 Subject: [PATCH] style(workflows): fix formatting and whitespace issues - Standardize quotes in branch matching patterns - Remove unnecessary trailing whitespace - Add export of author and committer dates for consistent tags - Ensure proper environment variable alignment --- .gitea/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 8f02b21..dd2425f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - '**' + - "**" jobs: detect-version-change: @@ -125,7 +125,7 @@ jobs: if: steps.restore-cliff.outputs.cache-hit != 'true' run: | cargo install git-cliff --version "${{ steps.cliff_version.outputs.version }}" --features gitea - + - name: Generate changelog for release and tag id: generate-changelog run: | @@ -152,7 +152,6 @@ jobs: echo "changelog_body_path=$BODY" >> $GITHUB_OUTPUT - - name: Commit updated CHANGELOG run: | git add CHANGELOG.md @@ -169,12 +168,14 @@ jobs: if git rev-parse "v$VERSION" >/dev/null 2>&1; then echo "Tag v$VERSION already exists, skipping tag creation." else + export GIT_AUTHOR_DATE="$(date --iso-8601=seconds)" + export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" git tag -a "v$VERSION" -F "${{ steps.generate-changelog.outputs.changelog_body_path }}" --cleanup=verbatim git push origin "v$VERSION" fi - name: Create Gitea release - env: + env: RELEASE_PUBLISH_TOKEN: ${{ secrets.RELEASE_PUBLISH_TOKEN }} run: | VERSION=${{ steps.version.outputs.value }}