Use our own git clone in draft release notes (#20956)

It turns out that messing with the git repo created by the github action
is
tricky, so we'll just clone our own.

On my machine, a shallow tree-less clone takes <500ms

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-11-21 11:55:22 -07:00 committed by GitHub
parent c16dfc1a39
commit 02447a8552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 42 additions and 30 deletions

View file

@ -5,4 +5,4 @@ if [[ "$GITHUB_REF_NAME" == *"-pre" ]]; then
preview="-p"
fi
gh release create -d "$GITHUB_REF_NAME" -F "$1" $preview
gh release create -t "$GITHUB_REF_NAME" -d "$GITHUB_REF_NAME" -F "$1" $preview