Merge pull request #985 from PMEAL/ci/simplify-actions #127
This file contains 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 (dev) | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
if: (! contains(github.event.head_commit.message, '[no bump]')) | |
name: Bump version | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install uv for faster builds | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install dependencies | |
run: | | |
uv pip install --system -e .[build] | |
- name: Bump version (dev) | |
run: | | |
hatch version dev | |
- name: Commit files | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Bump version number (dev segment) | |
commit_author: GitHub Actions <actions@github.com> |