diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index 1dbea1064e12..f74da07b65fd 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -121,7 +121,10 @@ jobs: - name: Verify executed migrations on master. run: | - mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp; + query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp; | tail -n 1) + echo "Query Result: $query_result" + echo "::set-env name=MYSQL_QUERY_RESULT::$query_result" + shell: bash - name: Checkout branch repo uses: actions/checkout@v2 @@ -150,7 +153,10 @@ jobs: - name: Verify executed migrations on branch. run: | - mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp; + query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp; | tail -n 1) + echo "Query Result: $query_result" + echo "::set-env name=MYSQL_QUERY_RESULT::$query_result" + shell: bash # This job aggregates test results. It's the required check for branch protection.