We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a3dd9 commit 39bfe5bCopy full SHA for 39bfe5b
.github/workflows/cicd.yml
@@ -32,6 +32,16 @@ jobs:
32
with:
33
go-version: 1.23.1
34
35
+ - name: Update version in main.go
36
+ run: |
37
+ TAG=${{ env.TAG }}
38
+ if [ -f main.go ]; then
39
+ sed -i 's/Newt version replaceme/Newt version '"$TAG"'/' main.go
40
+ echo "Updated main.go with version $TAG"
41
+ else
42
+ echo "main.go not found"
43
+ fi
44
+
45
- name: Build and push Docker images
46
run: |
47
TAG=${{ env.TAG }}
@@ -46,5 +56,3 @@ jobs:
56
57
name: binaries
48
58
path: bin/
49
-
50
0 commit comments