1111 - major
1212 - minor
1313 - patch
14-
14+
1515jobs :
1616 bump-version :
1717 runs-on : ubuntu-latest
1818 permissions :
1919 contents : write
2020 pull-requests : write
21-
21+
2222 steps :
2323 - name : Checkout code
2424 uses : actions/checkout@v4
2525 with :
2626 fetch-depth : 0
2727 token : ${{ secrets.GITHUB_TOKEN }}
28-
28+
2929 - name : Set up Python
3030 uses : actions/setup-python@v5
3131 with :
3232 python-version : ' 3.11'
33-
33+
3434 - name : Install bumpversion
3535 run : |
3636 python -m pip install --upgrade pip
3737 pip install bump2version
38-
38+
3939 - name : Configure git
4040 run : |
4141 git config --local user.email "github-actions[bot]@users.noreply.github.com"
4242 git config --local user.name "github-actions[bot]"
43-
43+
4444 - name : Get current version
4545 id : current_version
4646 run : |
4747 echo "version=$(grep current_version .bumpversion.cfg | cut -d '=' -f 2 | tr -d ' ')" >> $GITHUB_OUTPUT
48-
48+
4949 - name : Bump version
5050 id : bump_version
5151 run : |
5252 # Use --no-tag to prevent creating a tag (we'll tag after PR merge)
5353 # Use --no-commit to let create-pull-request handle the commit
5454 bump2version ${{ github.event.inputs.version_part }} --no-tag --no-commit
5555 echo "new_version=$(grep current_version .bumpversion.cfg | cut -d '=' -f 2 | tr -d ' ')" >> $GITHUB_OUTPUT
56-
56+
5757 - name : Create Pull Request
5858 id : create_pr
5959 uses : peter-evans/create-pull-request@v5
@@ -63,18 +63,18 @@ jobs:
6363 title : " chore: bump version from ${{ steps.current_version.outputs.version }} to ${{ steps.bump_version.outputs.new_version }}"
6464 body : |
6565 ## Version Bump
66-
66+
6767 This PR bumps the version from `${{ steps.current_version.outputs.version }}` to `${{ steps.bump_version.outputs.new_version }}`.
68-
68+
6969 ### Changes
7070 - Updated version in `setup.py`
7171 - Updated version in `docs/conf.py`
7272 - Updated version in `src/datapilot/__init__.py`
7373 - Updated version in `.bumpversion.cfg`
74-
74+
7575 ### Type of change
7676 - Version bump (${{ github.event.inputs.version_part }})
77-
77+
7878 ---
7979 *This PR was automatically created by the bump version workflow.*
8080 branch : bump-version-${{ steps.bump_version.outputs.new_version }}
0 commit comments