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 authored and GitHub committed 2024-11-19 19:08:33 -07:00
1 parent 1fca06942d
commit dea7f6df0e
2 files changed
+12 -17

No files matched your search

+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