dprotaso: Automated cherry pick of #104467: fix 104329: check for headless before trying to release

JobBuild
af0255cd
09-13 21:15
b8aa1373
09-13 19:34
104975
09-13 18:56
be120c80
09-13 18:54
pull-kubernetes-bazel-build 1437525345170362368 1437499830627733504 1437489813761560576
pull-kubernetes-bazel-test 1437525345208111104 1437499830657093632 1437489813795115008
pull-kubernetes-dependencies 1437525345241665536 1437499830682259456 1437489813820280832
pull-kubernetes-e2e-gce-100-performance 1437525345136807936 1437499830610956288 1437489813736394752
pull-kubernetes-e2e-gce-ubuntu-containerd 1437525345057116160 1437499830535458816 1437489813648314368
pull-kubernetes-e2e-kind 1437525345317163008 1437499830770339840 1437489813883195392
pull-kubernetes-integration 1437525345283608576 1437499830715813888 1437489813853835264
pull-kubernetes-node-e2e 1437525345090670592 1437499830569013248 1437489813694451712
pull-kubernetes-typecheck 1437525345350717440 1437499830799699968 1437489813908361216
pull-kubernetes-verify 1437525345384271872 1437499831051358208 1437489813941915648