Release Draft

release_draft.yml creates or updates a draft GitHub release from merged pull request metadata and the release template in .github/ci-config.yml.

Generated When

Generated only when do_releases is enabled.

Runs On

  • Pushes to main
  • Manual workflow_dispatch

Calls

uses: athackst/ci/.github/workflows/release_drafter.yml@main

See release_drafter.yml for the reusable workflow contract.

Dependencies

flowchart LR
    template["Template workflow<br/>release_draft.yml"] --> drafter["Reusable workflow<br/>release_drafter.yml"]
    drafter --> release_drafter["Action<br/>release-drafter/release-drafter"]

    classDef template fill:#e0f2fe,stroke:#0284c7
    classDef workflow fill:#ede9fe,stroke:#7c3aed
    classDef action fill:#ecfccb,stroke:#65a30d
    class template template
    class drafter workflow
    class release_drafter action

Permissions

The release draft job needs:

  • contents: write creates or updates draft releases.
  • pull-requests: read resolves changelog and version metadata.

Behavior

  • Uses Release Drafter to resolve the version and changelog from .github/ci-config.yml.
  • Creates or updates the repository’s draft release after pushes to main or manual dispatches.
  • Uses secrets.CI_BOT_TOKEN for release writes.