mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-11-24 03:51:26 +01:00
* Draft releases from merged changelog entries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCgr8hoG3Zv8L7euMQXcYB * Read the changelog as UTF-8, paginate releases, and stop on failed branch lookups Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCgr8hoG3Zv8L7euMQXcYB --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Draft release
|
|
|
|
# When a changelog PR lands, draft the GitHub release it describes. A draft has
|
|
# no tag and triggers nothing: a maintainer reviews and publishes it, and the
|
|
# `pypi` environment waits for approval before anything reaches PyPI. Changelog
|
|
# entries for every line live on main; maintenance versions draft against their
|
|
# release branch (release/<major>.<minor> or release/<major>.x).
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: [docs/changelog.mdx]
|
|
|
|
concurrency:
|
|
group: draft-release
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
draft:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Draft releases for new changelog entries
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
BEFORE: ${{ github.event.before }}
|
|
AFTER: ${{ github.sha }}
|
|
run: |
|
|
git fetch --depth=1 origin "$BEFORE" || true
|
|
python3 scripts/draft_release.py "$BEFORE" "$AFTER"
|