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 Jan 14, 2025
1 parent 8893545 commit 8b7685e
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 8b7685e

Please sign in to comment.