Bump Version and Create PR #51
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: Bump Version and Create PR | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| bump_type: | |
| description: 'Version bump type' | |
| type: choice | |
| required: true | |
| default: 'patch' | |
| options: | |
| - major | |
| - minor | |
| - patch | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| bump-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Bump Version | |
| id: bump | |
| uses: iory/[email protected] | |
| with: | |
| bump_type: ${{ github.event.inputs.bump_type }} | |
| github_token: ${{ secrets.AUTO_MERGE_PAT }} | |
| base_branch: 'main' | |
| labels: 'auto-merge-ok,release' | |
| - name: Print Versions | |
| run: | | |
| echo "Current Version: ${{ steps.bump.outputs.current_version }}" | |
| echo "New Version: ${{ steps.bump.outputs.new_version }}" |