From cf48e69fdaff4a0f2028b839ccdbf29a1a34c75d Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 31 Oct 2023 00:32:53 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index 971f829940b4..813c755bfcf2 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -153,9 +153,17 @@ jobs: - name: Verify executed migrations on branch. run: | - query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;) - echo "Query Result: $query_result" - echo "$query_result" + query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;) + echo "Query Result: $query_result1" + echo "$query_result1" + shell: bash + + - name: Verify difference + run: | + diff = $query_result1 - $query_result + result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select * from django_migrations ORDER by -id limit $diff ;" edxapp;) + echo "Query Result: result" + echo "result" shell: bash