Skip to content

Commit

Permalink
fix regex to replace version
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltingpenguin committed Dec 12, 2022
1 parent f0c341b commit 0194280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Fetch date for version bump
run: echo "new_version=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV
- name: Replace version in setup.py
run: sed -i '/[[:space:]]*version=/s/..$/.'${{ env.new_version }}''"'"',/g' setup.py
run: sed -i '/[[:space:]]*version="[0-9]+(\.[0-9]+){2}"/s//version="${{ env.new_version }}"/' setup.py
- name: Install Deps with pip
run: pip install .
- name: Install pypa/build
Expand Down

0 comments on commit 0194280

Please sign in to comment.