You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2021/11/05 00:17:10 UTC

[trafficcontrol] 18/22: Fix GHA that checks db migration filenames to properly check timestamp digits (#6322)

This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch 6.0.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 9ead7c7b88ad3f08aa2e5a2b985160b1176b7ac4
Author: ocket8888 <oc...@apache.org>
AuthorDate: Tue Nov 2 09:39:07 2021 -0600

    Fix GHA that checks db migration filenames to properly check timestamp digits (#6322)
---
 .github/actions/todb-tests/entrypoint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/actions/todb-tests/entrypoint.sh b/.github/actions/todb-tests/entrypoint.sh
index 80702eb..c0cff50 100755
--- a/.github/actions/todb-tests/entrypoint.sh
+++ b/.github/actions/todb-tests/entrypoint.sh
@@ -85,7 +85,7 @@ for migration_dir in ${migration_dirs[@]}; do
 
 	set +e;
 	# All new migrations must use 16-digit timestamps.
-	VIOLATING_FILES="$(ls | sort | cut -d _ -f 1 | sed -n -e '/2020061622101648/,$p' | tr '[:space:]' '\n' | grep -vE '^[0-9]{16}$')";
+	VIOLATING_FILES="$(ls | sort | cut -d _ -f 1 | grep -vE '^[0-9]{16}$' | grep -vE '^00000000000000$')";
 	set -e;
 
 	if [[ ! -z "$VIOLATING_FILES" ]]; then