From 2409937560a0028f6fdf7d9604f6be61db5c5eb5 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 21 Dec 2019 00:17:05 -0500 Subject: [PATCH] Bugfix regex --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7409fe4..5ac44df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,9 @@ jobs: - name: '' run: | pip install bumpversion - export regex=v([0-9]+.[0-9]+.[0-9]+) + export regex="([0-9]+.[0-9]+.[0-9]+)" echo ${{ github.ref }} > tag.txt - VERSION=`grep -Po '${regex}' tag.txt` + VERSION=`grep -Po "${regex}" tag.txt` bumpversion --new-version ${VERSION} - name: Build id: build @@ -49,7 +49,10 @@ jobs: - name: '' run: | pip install bumpversion - bumpversion --new-version ${SEMVER_NEW_VERSION} + export regex="([0-9]+.[0-9]+.[0-9]+)" + echo ${{ github.ref }} > tag.txt + VERSION=`grep -Po "${regex}" tag.txt` + bumpversion --new-version ${VERSION} - name: Build id: build uses: josephbmanley/build-godot-action@refactor/build