File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments