Skip to content

Commit

Permalink
fix: version file update and commit during release
Browse files Browse the repository at this point in the history
  • Loading branch information
suthar26 committed Aug 29, 2024
1 parent 9028c11 commit cede933
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 "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
Expand Down

0 comments on commit cede933

Please sign in to comment.