From 04db5b9e13cb08eda982c53355d8df21f7017899 Mon Sep 17 00:00:00 2001 From: Smriti Dahal <93288516+smritidahal653@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:46:37 -0700 Subject: [PATCH] ci: fix regex string for init container version (#661) --- .github/workflows/create-release-pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release-pull-request.yml b/.github/workflows/create-release-pull-request.yml index 95d35dd8..5e633fe4 100644 --- a/.github/workflows/create-release-pull-request.yml +++ b/.github/workflows/create-release-pull-request.yml @@ -9,7 +9,7 @@ on: init_container_version: description: 'Which init container version are we creating a release pull request for?' required: true - default: v0.3.0 + default: 0.3.0 based_on_branch: description: 'Which branch should we base the release pull request on?' required: true @@ -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 '[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