Skip to content

Commit

Permalink
fix: version file update and commit during release (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
suthar26 authored Aug 29, 2024
1 parent 9028c11 commit 200cc65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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/[email protected]
Expand Down

0 comments on commit 200cc65

Please sign in to comment.