chore(release): create pr for notes on release #1
Workflow file for this run
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: Changelog PR | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| changelog-pr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Update CHANGELOG.md | |
| run: | | |
| npx -y conventional-changelog-cli@5 \ | |
| -p conventionalcommits \ | |
| -i CHANGELOG.md -s | |
| - name: Open PR with changelog | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| base: main | |
| branch: chore/changelog-${{ github.event.release.tag_name }} # created if missing | |
| commit-message: "docs(changelog): update after ${{github.event.release.tag_name }}" | |
| title: "docs(changelog): update after ${{github.event.release.tag_name }}" | |
| body: "Automated changelog update for ${{github.event.release.tag_name }}." | |
| add-paths: | | |
| CHANGELOG.md |