Skip to content

Commit

Permalink
Update pypi_upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlu1248 authored Mar 26, 2024
1 parent f0c7792 commit 9597bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Bump version
run: |
echo "Bumping version..."
old_version=${{ steps.get-current-version.outputs.version }}
old_version=$(sed -n 's/^version = "\(.*\)"$/\1/p' pyproject.toml)
new_version=$(echo $old_version | awk -F'.' '{$NF+=1; print $0}' OFS='.')
sed -i "s/version = \\"$old_version\\"/version = \\"$new_version\\"/" pyproject.toml
echo "New version: $new_version"
Expand Down

0 comments on commit 9597bff

Please sign in to comment.