From 63e3b1e8a7e1bf7d28a9a7baaa6c04f36c185300 Mon Sep 17 00:00:00 2001 From: simoncolincap <66997279+simoncolincap@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:41:02 +0000 Subject: [PATCH] OPS-0000 fix regexs (#80) --- .github/workflows/filter-branch-name.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/filter-branch-name.yaml b/.github/workflows/filter-branch-name.yaml index 0efbbe2..5126907 100644 --- a/.github/workflows/filter-branch-name.yaml +++ b/.github/workflows/filter-branch-name.yaml @@ -24,5 +24,5 @@ jobs: - name: Filter branch name id: step run: | - echo "ticket=$(echo ${{ inputs.branch_name }} | grep -oE '[a-zA-Z]+-[0-9]+')" >> $GITHUB_OUTPUT - echo "scope=$(echo ${{ inputs.branch_name }} | grep -oE '[a-zA-Z]+-[0-9]+-[a-z]+' | grep -oE '[a-z]+$')" >> $GITHUB_OUTPUT + echo "ticket=$(echo ${{ inputs.branch_name }} | grep -oE '^[a-zA-Z]+-[0-9]+')" >> $GITHUB_OUTPUT + echo "scope=$(echo ${{ inputs.branch_name }} | grep -oE '^[a-zA-Z]+-[0-9]+-[a-z]+' | grep -oE '[a-z]+$')" >> $GITHUB_OUTPUT