ci: Add script/determine-release-channel (#18476)

- Refactor duplicated inline script from ci.yml to
`script/determine-release-channel`
- Remove references to non-existent '-nightly' release tags

Release Notes:

- N/A
This commit is contained in:
Peter Tripp 2024-09-30 16:17:21 -04:00 committed by GitHub
parent 74cba2407f
commit 09424edc35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 42 additions and 72 deletions

View file

@ -9,11 +9,8 @@ case $channel in
preview)
tag_suffix="-pre"
;;
nightly)
tag_suffix="-nightly"
;;
*)
echo "this must be run on either of stable|preview|nightly release branches" >&2
echo "this must be run on either of stable|preview release branches" >&2
exit 1
;;
esac