Release Draft¶
release_draft.yml creates or updates a draft GitHub release from merged pull
request metadata and .github/release_template.md.
Generated When¶
Generated only when do_releases is enabled.
Runs On¶
- Pushes to
main - Manual
workflow_dispatch
Calls¶
See release_drafter.yml for the reusable
workflow contract.
Permissions¶
The release draft job needs:
contents: writeto create or update draft releases.pull-requests: readto resolve changelog and version metadata.
The persist-draft-id job needs:
actions: writeto persistDRAFT_RELEASE_IDas a repository variable.
Behavior¶
- Passes
vars.DRAFT_RELEASE_IDinto the reusable Release Draft workflow. - Creates or updates a draft release from resolved version and changelog data.
- Stores the resulting release ID in the
DRAFT_RELEASE_IDrepository variable for the next run. - Uses
secrets.CI_BOT_TOKENfor release and variable writes.