Bump version to 0.4.29 #56
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 and Tag | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
version-bump: | |
if: github.actor != 'some-ci' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SOME_CI_PAT }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Dependencies | |
run: | | |
python -m pip install -U pip | |
pip install -r requirements-dev.txt | |
- name: Bump version | |
run: python tools/bump-version.py | |
- name: Push changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.SOME_CI_PAT }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Some CI" | |
version=$(python tools/get-version.py) | |
git add pyproject.toml fixcompliance/__init__.py | |
git commit -m "Bump version to $version" | |
git tag -a "$version" -m "$version" | |
git push && git push --tags |