From cede933a645d4d5812e427788a5d164e094c65dc Mon Sep 17 00:00:00 2001 From: Parth Suthar Date: Thu, 29 Aug 2024 11:39:11 -0400 Subject: [PATCH] fix: version file update and commit during release --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a868b5..64dabfb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,9 +68,15 @@ jobs: with: go-version: "1.20" - - name: Update version.go file + - name: Update and commit version.go file run: | sed -i 's/const Version = ".*"/const Version = "${{ steps.prepare-release.outputs.next-release-tag }}"/' version.go + git config --global user.email "github-tracker-bot@taplytics.com" + git config --global user.name "DevCycle Automation" + git add version.go + git commit -m "Release ${{ steps.prepare-release.outputs.next-release-tag }}" + git tag ${{ steps.prepare-release.outputs.next-release-tag }} + git push origin HEAD:main - name: Build and push Docker image uses: docker/build-push-action@v4.0.0