Skip to content

Commit 5d3fed3

Browse files
dzhalaevdseifertm
andcommitted
refactor: apply suggestions from code review
* remove `changed` file * simplify main.yaml Co-authored-by: Michael Seifert <m.seifert@digitalernachschub.de>
1 parent 0dcce49 commit 5d3fed3

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff 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 \

changelog.d/1392.changed.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)