Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/prepare-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ jobs:
echo "release ${VERSION} already exists and is published; choose a new version" >&2
exit 1

- name: Create or update draft release
- name: Delete existing draft release
env:
GH_TOKEN: ${{ github.token }}
VERSION: ${{ steps.version.outputs.version }}
run: |
set -euo pipefail
gh release delete "${VERSION}" --repo "${GITHUB_REPOSITORY}" --yes 2>/dev/null || true

- name: Create draft release with current release notes
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3
with:
tag_name: ${{ steps.version.outputs.version }}
Expand Down
Loading