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 31, 2023
1 parent 1a2d51b commit 70dd4e0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
--health-timeout 5s
--health-retries 3
steps:
- name: Step 1
run: |
echo "action_state=yellow" >> $GITHUB_ENV
echo "State is: '${{ env.action_state }}'"
- name: Step 2
run: |
echo "State is: '${{ env.action_state }}'"
- name: Setup mongodb user
run: |
mongosh edxapp --eval '
Expand Down Expand Up @@ -121,11 +129,11 @@ jobs:

- name: Verify executed migrations on master.
id: capture1
shell: bash
run: |
query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp;)
echo "Query Result: $query_result"
echo "query_r=$query_result" >> $GITHUB_ENV
shell: bash
- name: Checkout branch repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -154,6 +162,7 @@ jobs:
# ./manage.py cms migrate

- name: Verify executed migrations on branch.
shell: bash
id: capture2
run: |
captured_result="${{ env.query_r }}"
Expand Down

0 comments on commit 70dd4e0

Please sign in to comment.