testing github workflow 9 #8
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 | |
on: | |
push: | |
paths: | |
- "ncm/**" | |
jobs: | |
bump_version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" # specify the version of Python you're using | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install bump2version | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Action" | |
- name: Bump version | |
run: | | |
cd ncm && bump2version patch | |
- name: Push changes | |
run: | | |
git push && git push --tags |