From 627082ae4cd01efd7171e5690740bc92206e0791 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 31 Oct 2023 23:19:14 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index b684e82006e4..fdb1ad9e9f45 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -181,7 +181,8 @@ jobs: shell: bash id: capture2 run: | - query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;) + 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" | tr -d '\n' | sed -E 's/[^0-9]+//g') echo "Numeric Result: $numeric_result" echo "SECOND_QUERY=$numeric_result" >> $GITHUB_ENV @@ -192,7 +193,6 @@ jobs: echo "echo ${{ env.FIRST_QUERY }}" number1=${{ env.SECOND_QUERY }} number2=${{ env.FIRST_QUERY }} -# # Perform subtraction diff=$((number1 - number2)) # result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1 ;" edxapp;) # echo "Query Result: $result"