Skip to content

Commit

Permalink
Update Version (#286)
Browse files Browse the repository at this point in the history
* added version update workflow

* manually updated version

* updated workflow to correctly increment version

* Add Paul to author list
  • Loading branch information
pauladkisson authored Feb 20, 2024
1 parent 8723149 commit eb07c0a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update Dev Version on Release

on:
workflow_dispatch:
workflow_run:
workflows: [auto-publish]
types: [completed]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update dev version
run: |
old_version=${{ github.event.release.tag_name }}
old_major_version=${old_version:0:1}
old_minor_version=${old_version:2:1}
old_patch_version=${old_version:4:1}
new_patch_version=`expr $old_patch_version + 1`
new_version="$old_major_version.$old_minor_version.$new_patch_version"
sed -i -e "s/version = \"$old_version\"/version = \"$new_version\"/g" setup.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

setup(
name="roiextractors",
version="0.5.6",
author="Heberto Mayorquin, Szonja Weigl, Cody Baker, Ben Dichter, Alessio Buccino",
version="0.5.7",
author="Heberto Mayorquin, Szonja Weigl, Cody Baker, Ben Dichter, Alessio Buccino, Paul Adkisson",
author_email="[email protected]",
description="Python module for extracting optical physiology ROIs and traces for various file types and formats",
url="https://github.com/catalystneuro/roiextractors",
Expand Down

0 comments on commit eb07c0a

Please sign in to comment.