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
2 changed files with 12 additions and 17 deletions
+8
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