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