mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
18
.github/workflows/cicd.yml
vendored
18
.github/workflows/cicd.yml
vendored
@@ -23,15 +23,15 @@ jobs:
|
||||
with:
|
||||
go-version: 1.24
|
||||
|
||||
# - name: Update version in main.go
|
||||
# run: |
|
||||
# TAG=${{ env.TAG }}
|
||||
# if [ -f main.go ]; then
|
||||
# sed -i 's/Olm version replaceme/Olm version '"$TAG"'/' main.go
|
||||
# echo "Updated main.go with version $TAG"
|
||||
# else
|
||||
# echo "main.go not found"
|
||||
# fi
|
||||
- name: Update version in main.go
|
||||
run: |
|
||||
TAG=${{ env.TAG }}
|
||||
if [ -f main.go ]; then
|
||||
sed -i 's/version_replaceme/'"$TAG"'/' main.go
|
||||
echo "Updated main.go with version $TAG"
|
||||
else
|
||||
echo "main.go not found"
|
||||
fi
|
||||
|
||||
- name: Build binaries
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user