From 564f7ff26145f5bbff3370bf4a6f8c8a796d6571 Mon Sep 17 00:00:00 2001 From: Chimbori Date: Mon, 9 Dec 2024 16:31:04 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20require=20a=20prefix=20`v`=20in?= =?UTF-8?q?=20version=20name=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/aar-github-releases.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aar-github-releases.yml b/.github/workflows/aar-github-releases.yml index a64cd80..1066fb8 100644 --- a/.github/workflows/aar-github-releases.yml +++ b/.github/workflows/aar-github-releases.yml @@ -7,7 +7,7 @@ env: on: push: tags: - - "v[0-9]+.[0-9]+.[0-9]+" # Matches "v1.2.3" + - "[0-9]+.[0-9]+.[0-9]+" # Matches "1.2.3" jobs: build: @@ -26,7 +26,7 @@ jobs: uses: gradle/actions/wrapper-validation@v3 - name: Compute Variables - # Remove prefixes from tag, leaving only the X.Y.Z version string. ("refs/tags/v111.22.33" --> "111.22.33") + # Remove prefixes from tag, leaving only the X.Y.Z version string. ("refs/tags/111.22.33" --> "111.22.33") run: | VERSION_NAME=$(echo "${{ github.ref }}" | sed -E 's|^[^0-9]*([0-9]+\.[0-9]+\.[0-9]+).*$|\1|') echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV