From 60e73c46270529727b86825f098c3981f211c500 Mon Sep 17 00:00:00 2001 From: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com> Date: Sun, 17 May 2026 21:20:56 +0200 Subject: [PATCH] feat: add version management and automated commit for release changes --- .../reusable-manual-release-create.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/reusable-manual-release-create.yml b/.github/workflows/reusable-manual-release-create.yml index 7a2e9f6..486f92b 100644 --- a/.github/workflows/reusable-manual-release-create.yml +++ b/.github/workflows/reusable-manual-release-create.yml @@ -144,6 +144,24 @@ jobs: if: ${{ !inputs.build-and-push-only }} run: task git:set-config + - name: Apply version changes to repository files + if: ${{ !inputs.build-and-push-only }} + run: task version:set VERSION="${{ steps.version.outputs.REL_VERSION }}" + + - name: Commit and push version changes + if: ${{ !inputs.build-and-push-only }} + env: + RELEASE_VERSION: ${{ steps.version.outputs.REL_VERSION }} + run: | + if git diff --quiet --exit-code; then + echo "No versioned files changed" + exit 0 + fi + + git add -A + git commit -m "chore(release): prepare ${RELEASE_VERSION}" + git push origin "HEAD:${GITHUB_REF_NAME}" + - name: Create and push release tags if: ${{ !inputs.build-and-push-only }} run: VERSION_OVERRIDE="${{ steps.version.outputs.REL_VERSION }}" task version:tag-release