Fix draft-releaase-notes (#20885)

Turns out this was broken because (a) we didn't have tags fetched,
and (b) because the gh-release action we use is buggy.

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-11-19 19:08:33 -07:00 committed by GitHub
parent 705a06c3dd
commit c2668bc953
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 17 deletions

8
script/create-draft-release Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
preview=""
if [[ "$GITHUB_REF_NAME" == *"-pre" ]]; then
preview="-p"
fi
gh release create -d "$GITHUB_REF_NAME" -F "$1" $preview