Skip to content

Commit

Permalink
Merge pull request #50 from cobbler/fix-version-regex
Browse files Browse the repository at this point in the history
fix regex to replace version
  • Loading branch information
SchoolGuy authored Dec 12, 2022
2 parents ed4dd99 + 0194280 commit fcc11cb
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 fcc11cb

Please sign in to comment.