Release Prep #74
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: "Release Prep" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "The version number for the next release (e.g. 1.0.2)" | |
| required: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| clean: true | |
| fetch-depth: 0 | |
| - name: "generate changelog" | |
| run: | | |
| gh extension install chelnak/gh-changelog | |
| gh changelog new --next-version v${{ github.event.inputs.version }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: "commit changes" | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git commit -m "Release prep v${{ github.event.inputs.version }}" | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "Release prep v${{ github.event.inputs.version }}" | |
| branch: "release-prep" | |
| delete-branch: true | |
| title: "Release prep v${{ github.event.inputs.version }}" | |
| base: "main" | |
| body: | | |
| Automated release-prep from commit ${{ github.sha }}. | |
| labels: "maintenance" |