File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1- name : Code Coverage
1+ name : Tests and Pre-build
22
33on :
44 pull_request :
Original file line number Diff line number Diff line change 11repos :
2- - repo : https://github.com/pre-commit/pre-commit-hooks
3- rev : v3.4.0
4- hooks : []
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : v3.4.0
4+ hooks : []
5+
6+ # - repo: local
7+ # hooks:
8+ # - id: version-increment
9+ # name: version-increment
10+ # entry: ./version_increment.sh
11+ # language: script
12+ # always_run: true
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ read -p " Increment Patch Version'? (s/N): " response
4+
5+ if [[ " $response " =~ ^([sS][iI][mM]| [sS])$ ]]; then
6+ poetry version patch
7+ git add pyproject.toml
8+ echo " Incremented Version and pyproject.toml added for commit."
9+ else
10+ echo " Version not incremented."
11+ fi
You can’t perform that action at this time.
0 commit comments