From 725735eb0aba6eb5bb2fdb91d15d618570707d3c Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 3 Sep 2024 11:04:40 -0500 Subject: [PATCH] Update update-version-number.yaml now only matches if VERSION is at the start of the line --- .github/workflows/update-version-number.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-version-number.yaml b/.github/workflows/update-version-number.yaml index 9ce8a8a..c7da062 100644 --- a/.github/workflows/update-version-number.yaml +++ b/.github/workflows/update-version-number.yaml @@ -23,7 +23,7 @@ jobs: run: | VERSION=${{ github.ref_name }} VERSION="${VERSION:1}" - sed -i -E 's/VERSION = ".*?"/VERSION = "'$VERSION'"/g' find_posts.py + sed -i -E 's/^VERSION = ".*?"/VERSION = "'$VERSION'"/g' find_posts.py git add find_posts.py git commit -m "[bot] Bump version to $VERSION" - name: Push to repository