Skip to content

Increment Version

Increment Version #3

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