diff --git a/template/.github/workflows/build.yml b/template/.github/workflows/build.yml index 9c1a3f4..4151a72 100644 --- a/template/.github/workflows/build.yml +++ b/template/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: - name: Replace version if: startsWith(github.ref, 'refs/tags/') run: | - sed -i -e "s/0.0.0/${STEPS_VERSION_OUTPUTS_VERSION}/g" pyproject.toml + sed -i -E -e "s/(^|[^0-9])0\.0\.0([^0-9]|$)/\1${STEPS_VERSION_OUTPUTS_VERSION}\2/g" pyproject.toml env: STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }} - name: Build project