Increment Version #3
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: Increment Version | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Automated version increment' | |
required: false | |
default: '' | |
jobs: | |
increment-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Prepare git branch | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Richard Hakim" | |
git fetch --all | |
git checkout main | |
git pull | |
- name: Increment version | |
run: python .github/scripts/increment_version.py --path bnpm/__init__.py | |
- name: Commit changes | |
run: | | |
git status | |
git add bnpm/__init__.py | |
git commit -m "Increment version number" | |
git push |