From 0194280028bd17badbf946ba76a5ba44c75d62ad Mon Sep 17 00:00:00 2001 From: nkrapp Date: Mon, 12 Dec 2022 14:04:34 +0100 Subject: [PATCH] fix regex to replace version --- .github/workflows/release_main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_main.yml b/.github/workflows/release_main.yml index f122033..05cb2ae 100644 --- a/.github/workflows/release_main.yml +++ b/.github/workflows/release_main.yml @@ -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