Skip to content

Commit 5ec5045

Browse files
feat: add version management and automated commit for release changes (#71)
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
1 parent f1adb8a commit 5ec5045

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/reusable-manual-release-create.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,24 @@ jobs:
144144
if: ${{ !inputs.build-and-push-only }}
145145
run: task git:set-config
146146

147+
- name: Apply version changes to repository files
148+
if: ${{ !inputs.build-and-push-only }}
149+
run: task version:set VERSION="${{ steps.version.outputs.REL_VERSION }}"
150+
151+
- name: Commit and push version changes
152+
if: ${{ !inputs.build-and-push-only }}
153+
env:
154+
RELEASE_VERSION: ${{ steps.version.outputs.REL_VERSION }}
155+
run: |
156+
if git diff --quiet --exit-code; then
157+
echo "No versioned files changed"
158+
exit 0
159+
fi
160+
161+
git add -A
162+
git commit -m "chore(release): prepare ${RELEASE_VERSION}"
163+
git push origin "HEAD:${GITHUB_REF_NAME}"
164+
147165
- name: Create and push release tags
148166
if: ${{ !inputs.build-and-push-only }}
149167
run: VERSION_OVERRIDE="${{ steps.version.outputs.REL_VERSION }}" task version:tag-release

0 commit comments

Comments
 (0)