From a81c86f159024773937276f807fff6cb945812d4 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 31 Oct 2023 22:54:32 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index f23eb3756174..a8dff4fd73e7 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -142,7 +142,7 @@ jobs: run: | query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;) echo "echo $query_result1" - numeric_result=$(echo "query_result1" | sed 's/[^0-9]*//g') + numeric_result=$(echo "$query_result1" | tr -d '\n' | sed -E 's/[^0-9]+//g') echo "Numeric Result: $numeric_result" echo "FIRST_QUERY=$numeric_result" >> $GITHUB_ENV