File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -200,18 +200,9 @@ jobs:
200200 run : |
201201 TAG_NAME="${GITHUB_REF#refs/tags/}"
202202
203- IS_DRAFT=$(gh release view "${TAG_NAME}" --json isDraft --jq '.isDraft' 2>/dev/null || echo "")
204- if [ -n "${IS_DRAFT}" ]; then
205- if [ "${IS_DRAFT}" = "false" ]; then
206- exit 0
207- fi
208- gh release edit "${TAG_NAME}" \
209- --title "pytest-asyncio ${VERSION}" \
210- --notes-file release-notes.md \
211- --draft
212-
213- gh release upload "${TAG_NAME}" dist/* --clobber
214- else
203+ gh release view "${TAG_NAME}" >/dev/null
204+ RELEASE_EXISTS=$?
205+ if [ $RELEASE_EXISTS -ne 0 ]; then
215206 gh release create "${TAG_NAME}" \
216207 --title "pytest-asyncio ${VERSION}" \
217208 --notes-file release-notes.md \
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments