Version Bump #1
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: Version Bump | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| bump_type: | |
| description: "Select the type" | |
| required: true | |
| default: "patch" | |
| type: choice | |
| options: | |
| - patch | |
| - minor | |
| - major | |
| jobs: | |
| version_bump: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Bump version of datex | |
| id: bump_version | |
| run: deno run -A .github/tools/version-bump.ts Cargo.toml ${{ inputs.bump_type }} | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| env: | |
| NEW_VERSION: ${{ steps.bump_version.outputs.NEW_VERSION }} | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "Bump version to ${{ env.NEW_VERSION }}" | |
| title: "Release (${{ env.NEW_VERSION }})" | |
| body: "This PR bumps the version of datex to ${{ env.NEW_VERSION }}." | |
| draft: true | |
| branch: "release/${{ env.NEW_VERSION }}" | |
| delete-branch: true | |
| labels: | | |
| release | |
| reviewers: jonasstrehle,benStre |