From 9d102208b55b50d62aae6a7d7e7cf659ceb08848 Mon Sep 17 00:00:00 2001 From: Ameer Ghani Date: Mon, 25 Sep 2023 13:45:30 -0400 Subject: [PATCH] Migration filenames containing numbers are valid (#1981) --- .github/actions/validate-migrations/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/validate-migrations/action.yml b/.github/actions/validate-migrations/action.yml index d7bbc7413..6b6d9967b 100644 --- a/.github/actions/validate-migrations/action.yml +++ b/.github/actions/validate-migrations/action.yml @@ -6,7 +6,7 @@ runs: - name: Ensure all migrations have the proper filename shell: bash run: | - REGEX='^(README.md)|([0-9]{14}_[a-z_]+\.(down|up)\.sql$)' + REGEX='^(README.md)|([0-9]{14}_[a-z0-9_]+\.(down|up)\.sql$)' INVALID_FILES=$(find db/ -mindepth 1 -printf "%f\n" | grep -Pv "$REGEX" || true) if [ -n "$INVALID_FILES" ]; then