From ad0b8737291a673b85b0cf184c724c3e23e90f3b Mon Sep 17 00:00:00 2001 From: Jeremy McCormick Date: Mon, 2 Dec 2024 13:49:56 -0600 Subject: [PATCH] Do not require a starting dash in branch name when there is extra text --- .github/workflows/migrate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml index a4a5c342..0c0fa971 100644 --- a/.github/workflows/migrate.yaml +++ b/.github/workflows/migrate.yaml @@ -53,7 +53,7 @@ jobs: - name: Check branch name run: | - if [[ ! "${{ env.BRANCH_NAME }}" =~ ^tickets/DM-[0-9]+(-[a-zA-Z0-9-]*)?$ ]]; then + if [[ ! "${{ env.BRANCH_NAME }}" =~ ^tickets/DM-[0-9]+([a-zA-Z0-9-]*)?$ ]]; then echo "Bad branch name: ${{ env.BRANCH_NAME }}" >&2 echo "Error: Migrations are only generated for branches matching the pattern 'tickets/DM-[number](-[alphanumeric-]*)'." >&2 exit 1