You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/03/18 20:52:54 UTC

[GitHub] [trafficcontrol] rimashah25 commented on a change in pull request #5652: A PR check to ensure migration file added is the latest

rimashah25 commented on a change in pull request #5652:
URL: https://github.com/apache/trafficcontrol/pull/5652#discussion_r597234111



##########
File path: .github/actions/todb-tests/entrypoint.sh
##########
@@ -51,6 +51,23 @@ for file in "$(ls)"; do
 	fi
 done
 
+# Files added must have date and name later than all existing file
+LATEST_FILE="$(ls -t1 |  head -n 1)"
+LATEST_FILE_TIME="$(stat -f "%m%t%Sm %N" $LATEST_FILE | cut -f1)"
+
+# Get modified times in an array
+mtime_array=()
+arr=("$(ls)")

Review comment:
       ok




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org