File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ require (
2020k8s.io/api v0.28.0
2121k8s.io/apimachinery v0.28.0
2222k8s.io/client-go v0.28.0
23- knative.dev/hack v0.0.0-20231107173840-883479423aaa
23+ knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
2424knative.dev/networking v0.0.0-20231108061732-e0bee342a97e
2525knative.dev/pkg v0.0.0-20231108014432-35011d423d4b
2626)
Original file line number Diff line number Diff line change @@ -685,8 +685,8 @@ k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5F
685685k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f /go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg =
686686k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk =
687687k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 /go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0 =
688- knative.dev/hack v0.0.0-20231107173840-883479423aaa h1:XVFqW2a8xvyo231TbVSD3i+580pVej9LbTSmYex6d1g =
689- knative.dev/hack v0.0.0-20231107173840-883479423aaa /go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q =
688+ knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7 h1:HXf7M7n9jwn+Hp904r0HXRSymf+DLXSciFpXVpCg+Bs =
689+ knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7 /go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q =
690690knative.dev/networking v0.0.0-20231108061732-e0bee342a97e h1:IFZuDN6IA3lzGt3zVgQ1VbTPSdDcCkdvD0SmxZ3blBM =
691691knative.dev/networking v0.0.0-20231108061732-e0bee342a97e /go.mod h1:cu01aODvz01sLC80d7Md6M8pSFi7RMurQnCubeeVH40 =
692692knative.dev/pkg v0.0.0-20231108014432-35011d423d4b h1:WrDo9M6vkJ4xnTBodWOT2koXjKqr7dOqJH4RWBq4kBw =
Original file line number Diff line number Diff line change @@ -658,13 +658,18 @@ function publish_artifacts() {
658658
659659# Sets the github release with the highest semver to 'latest'
660660function set_latest_to_highest_semver() {
661- local last_version # don't combine with the line below, or $? will be 0
661+ if ! (( PUBLISH_TO_GITHUB )) ; then
662+ return 0
663+ fi
664+ echo " Setting latest release to highest semver"
665+
666+ local last_version release_id # don't combine with assignment else $? will be 0
667+
662668 last_version=" $( hub_tool -p release | cut -d' -' -f2 | grep ' ^v[0-9]\+\.[0-9]\+\.[0-9]\+$' | sort -r -V | head -1) "
663669 if ! [[ $? -eq 0 ]]; then
664670 abort " cannot list releases"
665671 fi
666672
667- local release_id # don't combine with the line below, or $? will be 0
668673 release_id=" $( hub_tool api " /repos/${ORG_NAME} /${REPO_NAME} /releases/tags/knative-${last_version} " | jq .id) "
669674 if [[ $? -ne 0 ]]; then
670675 abort " cannot get relase id from github"
@@ -701,6 +706,8 @@ function main() {
701706 function_exists build_release || abort " function 'build_release()' not defined"
702707 [[ -x ${VALIDATION_TESTS} ]] || abort " test script '${VALIDATION_TESTS} ' doesn't exist"
703708
709+ banner " Environment variables"
710+ env
704711 # Log what will be done and where.
705712 banner " Release configuration"
706713 if which gcloud & > /dev/null ; then
Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ k8s.io/utils/net
918918k8s.io/utils/pointer
919919k8s.io/utils/strings/slices
920920k8s.io/utils/trace
921- # knative.dev/hack v0.0.0-20231107173840-883479423aaa
921+ # knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
922922## explicit; go 1.18
923923knative.dev/hack
924924# knative.dev/networking v0.0.0-20231108061732-e0bee342a97e
You can’t perform that action at this time.
0 commit comments