From 7e64c45cf3bfe08b81d8bb5f928ac2459ac08564 Mon Sep 17 00:00:00 2001 From: "Meggle (Sebastian Bathke)" Date: Mon, 23 Sep 2024 20:15:52 +0200 Subject: [PATCH] ci: catch pre-releases in release expression --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4ac7213..3be37fb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: - name: Get Release version shell: bash run: | - RELEASE_VERSION=$(echo $GITHUB_REF | egrep -o "[0-9]\.[0-9]\.[0-9]{1,2}") + RELEASE_VERSION=$(echo $GITHUB_REF | egrep -o "[0-9]\.[0-9]\.[0-9]{1,2}(-.*)") echo "RELEASE_VERSION=$RELEASE_VERSION" >> "$GITHUB_ENV" - uses: actions/setup-go@v5 with: