Skip to content

Commit 39bfe5b

Browse files
Insert version CICD
1 parent a1a3dd9 commit 39bfe5b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cicd.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ jobs:
3232
with:
3333
go-version: 1.23.1
3434

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+
3545
- name: Build and push Docker images
3646
run: |
3747
TAG=${{ env.TAG }}
@@ -46,5 +56,3 @@ jobs:
4656
with:
4757
name: binaries
4858
path: bin/
49-
50-

0 commit comments

Comments
 (0)