name: Bump Version on: workflow_dispatch: inputs: bump: type: choice description: "Bump major, minor, or patch version" required: true default: "patch" options: - "major" - "minor" - "patch" jobs: bump-version: runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout code uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v4 with: python-version: 3.11 cache: pip - name: Install Python libraries run: | pip install --user bumpver - name: git config run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - name: Bump version run: bumpver update --commit --tag-commit --${{ github.event.inputs.bump }} --push