fix: refresh draft release notes on every push to main#90
Open
kitsuyui wants to merge 1 commit into
Open
Conversation
Two issues prevented the draft release from tracking current state: 1. path filter 'paths: [action.yml]' meant that commits touching only scripts, workflows, or docs never triggered a draft refresh, so PRs merged after an action.yml-only window went unrecorded. 2. softprops/action-gh-release preserves an existing draft when it finds one for the same tag, keeping the body frozen at the first-create date. Adding an explicit delete step before the action ensures a fresh draft is always created with up-to-date generated notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The draft release body for v0.2.4 has been frozen since 2026-05-12 despite multiple pushes to main. Two independent issues caused this:
Issue 1 — path filter too narrow:
paths: [action.yml]meant only commits that touchedaction.ymltriggered a draft refresh. Changes to scripts, workflows, or docs (e.g. PR #56–#74) were silently excluded.Issue 2 — softprops preserves stale drafts:
softprops/action-gh-releasecreates a fresh draft then detects the existing draft for the same tag and keeps the old one while deleting the new one.generate_release_notes: trueonly applies at create time and never updates an existing draft body.Changes
prepare-draft-release.yml: removepaths: [action.yml]— trigger on every push tomainprepare-draft-release.yml: add "Delete existing draft release" step before thesoftpropsstep — ensures a fresh draft with current generated notes is always createdVerification
actionlint .github/workflows/prepare-draft-release.yml: no errors