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 00d3ca2 commit cd09f22Copy full SHA for cd09f22
etc/perf-pr-comment.sh
@@ -5,5 +5,5 @@
5
set -eux
6
7
pushd ./internal/cmd/perfcomp >/dev/null || exist
8
-GOWORK=off go run .
+GOWORK=off go run . ${VERSION_ID}
9
popd >/dev/null
internal/cmd/perfcomp/main.go
@@ -97,9 +97,9 @@ func main() {
97
log.Panic("PERF_URI_PRIVATE_ENDPOINT env variable is not set")
98
}
99
100
- version := os.Getenv("VERSION_ID")
+ version := os.Args[len(os.Args)-1]
101
if version == "" {
102
- log.Panic("VERSION_ID env variable is not set")
+ log.Panic("could not get VERSION_ID")
103
104
105
client, err1 := mongo.Connect(options.Client().ApplyURI(uri))
0 commit comments