@@ -33,13 +33,13 @@ jobs:
3333 id : load-platform-matrix
3434 shell : bash
3535 run : |
36- # Filter entries with pkg_go_dev in PACKAGE_MANAGERS and remove "ephemeral" from RUNNER
36+ # Filter entries with pkg_go_dev in PACKAGE_MANAGERS and replace "ephemeral" with "persistent" in RUNNER
3737 export PLATFORM_MATRIX=$(jq 'map(
38- select(.PACKAGE_MANAGERS != null and (.PACKAGE_MANAGERS | contains(["pkg_go_dev"])))
38+ select(.PACKAGE_MANAGERS != null and (.PACKAGE_MANAGERS | contains(["pkg_go_dev"])))
3939 | .RUNNER = (
4040 if (.RUNNER | type == "array")
41- then (.RUNNER | map(select(. != "ephemeral") ))
42- else .RUNNER
41+ then (.RUNNER | map(if . == "ephemeral" then "persistent" else . end ))
42+ else (if . == "ephemeral" then "persistent" else . end)
4343 end
4444 )
4545 )' < .github/json_matrices/build-matrix.json | jq -c .)
@@ -148,13 +148,14 @@ jobs:
148148 cp protobuf/* $GITHUB_WORKSPACE/go/protobuf/
149149 - name : Commit and push tag
150150 run : |
151+ RELEASE_VERSION=${{ needs.validate-release-version.outputs.RELEASE_VERSION }}
151152 git config user.name github-actions
152153 git config user.email github-actions@github.com
153154 git add -f .
154155 git commit -m "Automated commit from GitHub Actions"
155- git tag go/${{ needs.validate-release-version.outputs. RELEASE_VERSION }}
156- git push origin go/${{ needs.validate-release-version.outputs. RELEASE_VERSION }}
157- GOPROXY=proxy.golang.org go list -m github.com/valkey-io/valkey-glide/go@${{ needs.validate-release-version.outputs. RELEASE_VERSION }}
156+ git tag go/$RELEASE_VERSION
157+ git push origin go/$RELEASE_VERSION
158+ GOPROXY=proxy.golang.org go list -m github.com/valkey-io/valkey-glide/go@$RELEASE_VERSION
158159
159160 extra-post-commit-test :
160161 needs :
@@ -204,13 +205,13 @@ jobs:
204205 working-directory : go/benchmarks
205206 run : |
206207 # change go/benchmarks/go.mod on the fly
207- export ESCAPED_VERSION=$(echo "$ {{ needs.validate-release-version.outputs.RELEASE_VERSION }}" | sed 's/\./\\./g')
208+ RELEASE_VERSION=$ {{ needs.validate-release-version.outputs.RELEASE_VERSION }}
208209 if [[ "${{ matrix.host.OS }}" == "macos" ]]; then
209- sed -i '' '/ replace github\.com\ /valkey-io\ /valkey-glide\ /go/ d' go.mod
210- sed -i '' "s/ github\.com\ /valkey-io\ /valkey-glide\ /go v0\.0\.0/ github.com\ /valkey-io\ /valkey-glide\ /go $ESCAPED_VERSION/ g" go.mod
210+ sed -i '' '\| replace github\.com/valkey-io/valkey-glide/go| d' go.mod
211+ sed -i '' "s| github\.com/valkey-io/valkey-glide/go v.*| github.com/valkey-io/valkey-glide/go $RELEASE_VERSION| g" go.mod
211212 else
212- sed -i '/ replace github\.com\ /valkey-io\ /valkey-glide\ /go/ d' go.mod
213- sed -i "s/ github\.com\ /valkey-io\ /valkey-glide\ /go v0\.0\.0/ github.com\ /valkey-io\ /valkey-glide\ /go $ESCAPED_VERSION/ g" go.mod
213+ sed -i '\| replace github\.com/valkey-io/valkey-glide/go| d' go.mod
214+ sed -i "s| github\.com/valkey-io/valkey-glide/go v.*| github.com/valkey-io/valkey-glide/go $RELEASE_VERSION| g" go.mod
214215 fi
215216 go mod tidy
216217 go run . -minimal -clients glide -concurrentTasks 10 -port ${{ env.PORT }}
0 commit comments