Skip to content

Commit

Permalink
Do not require a starting dash in branch name when there is extra text
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Dec 2, 2024
1 parent 593b437 commit ad0b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad0b873

Please sign in to comment.