Skip to content

Commit

Permalink
updated version update to work with pyproject.toml and other version …
Browse files Browse the repository at this point in the history
…locations
  • Loading branch information
pauladkisson committed Jul 25, 2024
1 parent 00639ca commit 9df85df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
new_patch_version=`expr $old_patch_version + 1`
new_version="$old_major_version.$old_minor_version.$new_patch_version"
echo "New Version: $new_version"
sed -i -e "s/version=\"$old_version\"/version=\"$new_version\"/g" setup.py
sed -i -e "s/version = \"$old_version\"/version = \"$new_version\"/g" pyproject.toml
sed -i -e "s/version=\"\"\"$old_version\"\"\"/version=\"\"\"$new_version\"\"\"/g" src/spec/create_extension_spec.py
sed -i -e "s/version: $old_version/version: $new_version/g" spec/ndx-fiber-photometry.namespace.yaml
echo "old_version=$old_version" >> "$GITHUB_ENV"
echo "new_version=$new_version" >> "$GITHUB_ENV"
- name: Commit Changes and Create Pull Request
Expand Down

0 comments on commit 9df85df

Please sign in to comment.