From 81b0dd768681ac84d10da4d6a64c8edaeaaa4a04 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 16 Nov 2022 04:36:53 -0500 Subject: [PATCH] [v9.3.x] Fix: Bump-version action regex pattern to work with beta1 (#58806) Fix: Bump-version action regex pattern to work with beta1 (#58805) Fixing bump version regex (cherry picked from commit 174a039ee1df6ba885283dfd8b57d4d99e98457d) Co-authored-by: Timur Olzhabayev --- .github/workflows/bump-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 2f253c6927d..b07cf46eeba 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -17,7 +17,7 @@ jobs: id: regex-match with: text: ${{ github.event.inputs.version }} - regex: '^(\d+.\d+).\d+(?:-beta.\d+)?$' + regex: '^(\d+.\d+).\d+(?:-beta\d+)?$' - uses: actions-ecosystem/action-regex-match@v2.0.2 if: ${{ inputs.version_call != '' }} id: regex-match-version-call @@ -29,7 +29,7 @@ jobs: run: | echo "The input version format is not correct, please respect:\ major.minor.patch or major.minor.patch-beta.number format. \ - example: 7.4.3 or 7.4.3-beta.1" + example: 7.4.3 or 7.4.3-beta1" exit 1 - name: Validate input version call if: ${{ inputs.version_call != '' && steps.regex-match-version-call.outputs.match == '' }}