-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: version file update and commit during release (#23)
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|