Skip to content

Commit

Permalink
build: capturing new migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Oct 30, 2023
1 parent a9d0efc commit 799da94
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 799da94

Please sign in to comment.