Backfill release notes #8
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
| 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 |