From cfc5cf3d8381e10e2cb19994341f81d06dd0389e Mon Sep 17 00:00:00 2001 From: Patrick Lewis Date: Sat, 28 Nov 2020 16:42:20 -0800 Subject: [PATCH] fix(ci): update semicolon check #3799 add sed to filter out comments with -- --- .github/workflows/check_pending_sql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_pending_sql.yml b/.github/workflows/check_pending_sql.yml index 1f5746155..3262b9503 100644 --- a/.github/workflows/check_pending_sql.yml +++ b/.github/workflows/check_pending_sql.yml @@ -18,7 +18,7 @@ jobs: - name: Semicolon check run: | for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do - if [[ $(cat "$i"|tr -d '\n'|tail -c 1) != ";" ]]; then + if [[ $(cat "$i"|sed 's/ --.*$//'|tr -d '\n'|tail -c 1) != ";" ]]; then echo "Missing Semicolon at the end of the file. (;)" exit 1 else