From 85c1736561881465f5c421edf693f51ae1ad12c8 Mon Sep 17 00:00:00 2001 From: Smriti Dahal <93288516+smritidahal653@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:35:15 -0700 Subject: [PATCH] ci: update regex for init container version (#658) --- .github/workflows/create-release-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pull-request.yml b/.github/workflows/create-release-pull-request.yml index 1775c243..95d35dd8 100644 --- a/.github/workflows/create-release-pull-request.yml +++ b/.github/workflows/create-release-pull-request.yml @@ -28,7 +28,7 @@ jobs: - name: validate version run: | echo "${{ github.event.inputs.release_version }}" | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+$' - echo "${{ github.event.inputs.init_container_version }}" | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+$' + echo "${{ github.event.inputs.init_container_version }}" | grep -E '[0-9]+\.[0-9]+\.[0-9]+$' echo "${{ github.event.inputs.based_on_branch }}" | grep -E '^(master|release-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+\.[0-9]+\.[0-9]+)$' - uses: actions/checkout@v4