Skip to content

Backfill release notes #12

Backfill release notes

Backfill release notes #12

name: Backfill release notes
on:
workflow_dispatch:
inputs:
tag:
description: Release tag to refresh (e.g. v2.100.1)
required: true
type: string
apply:
description: Update the GitHub release body (otherwise dry-run only)
required: false
type: boolean
default: false
permissions:
contents: read
jobs:
backfill:
runs-on: ubuntu-latest
permissions:
contents: write
env:
TAG: ${{ inputs.tag }}
steps:
- uses: useblacksmith/checkout@41cdeedae8edb2e684ba22896a5fd2a3cb85db6b # v1
with:
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/setup
- name: Compute release notes (dry-run)
run: pnpm exec bun apps/cli/scripts/backfill-release-notes.ts --tag "${TAG}" | tee notes.md
- name: Publish notes to job summary
run: |
{
echo "## Notes for ${TAG}"
echo
cat notes.md
} >> "$GITHUB_STEP_SUMMARY"
- name: Update GitHub Release body
if: inputs.apply
env:
GH_TOKEN: ${{ github.token }}
run: pnpm exec bun apps/cli/scripts/backfill-release-notes.ts --tag "${TAG}" --apply