Skip to content

Merge pull request #287 from Ouranosinc/fix-286 #119

Merge pull request #287 from Ouranosinc/fix-286

Merge pull request #287 from Ouranosinc/fix-286 #119

Workflow file for this run

name: "Bump Patch Version"
on:
push:
branches:
- main
paths-ignore:
- .cruft.json
- .editorconfig
- .github/**.yml
- .gitignore
- .gitlab-ci.yml
- .gitmodules
- .pre-commit-config.yaml
- .yamllint.yaml
- AUTHORS.rst
- CONTRIBUTING.rst
- docs/notebooks
- docs/*.py
- docs/*.rst
- environment-dev.yml
- environment.yml
- HISTORY.rst
- Makefile
- MANIFEST.in
- requirements_upstream.txt
- setup.cfg
- setup.py
- tests/**.py
- tox.ini
- xscen/__init__.py
jobs:
bump_patch_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Config Commit Bot
run: |
git config --local user.email "bumpversion[bot]@ouranos.ca"
git config --local user.name "bumpversion[bot]"
- name: Current Version
run: echo "current_version=$(grep -E '__version__' xscen/__init__.py | cut -d ' ' -f3)"
- name: Bump Patch Version
run: |
python -m pip install bump2version
echo "Bumping version"
python -m bump2version patch
echo "new_version=$(grep -E '__version__' xscen/__init__.py | cut -d ' ' -f3)"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
force: false
github_token: ${{ secrets.BUMPVERSION_TOKEN }}
branch: ${{ github.ref }}