From 443287607f992f1183a4c2a585e268648619a0bb Mon Sep 17 00:00:00 2001 From: Ata Can Date: Sat, 21 Feb 2026 00:01:09 +0300 Subject: [PATCH] chore: update .gitignore and clean up README structure --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 639ce5c..c528fb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,12 +55,12 @@ jobs: set -e NEW_VERSION="${{ github.event.inputs.version }}" FILE=pyproject.toml - if ! grep -q '^version' "$FILE"; then + if ! grep -q '^\s*version' "$FILE"; then echo "pyproject.toml does not contain a version field" >&2 exit 1 fi - # replace version = "..." - perl -0777 -pe "s/^version\s*=\s*\"[0-9]+\.[0-9]+\.[0-9]+(?:[-+][^\"]*)?\"/version = \"${NEW_VERSION}\"/m" -i "$FILE" + # replace version = "..." (allow optional leading whitespace) + perl -0777 -pe "s/^\s*version\s*=\s*\"[0-9]+\.[0-9]+\.[0-9]+(?:[-+][^\"]*)?\"/version = \"${NEW_VERSION}\"/m" -i "$FILE" git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add "$FILE"