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 438b39e commit 2286711
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,6 @@ jobs:
echo "Running the CMS migrations."
./manage.py cms migrate
# - name: "Setup env vars"
# id: envvars
# run: |
# number1=10
# number2=5
# echo "Number 1: $number1"
# echo "Number 2: $number2"
# result=$((number1 - number2))
# echo "Result: $result"
# echo "SUBTRACTION_RESULT=$result" >> $GITHUB_ENV
# shell: bash
#
# - name: Use subtraction result
# run: |
# subtraction_result=${{ env.SUBTRACTION_RESULT }}
# echo "Subtraction Result: $subtraction_result"

- name: Verify executed migrations on master.
id: capture12
shell: bash
Expand All @@ -156,10 +139,6 @@ jobs:
pip check # fail if this test-reqs/Django combination is broken
fi
- name: list installed package versions
run: |
pip freeze
- name: Run Tests
env:
LMS_CFG: lms/envs/minimal.yml
Expand All @@ -186,11 +165,10 @@ jobs:
echo "echo ${{env.SECOND_QUERY}}"
number1=${{ env.FIRST_QUERY }}
number2=${{ env.SECOND_QUERY }}
# # Perform subtraction
# # Perform subtraction
diff=$((SECOND_QUERY - FIRST_QUERY))
result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select * from django_migrations ORDER by -id limit 3;" edxapp;)
echo "$result"
shell: bash

# This job aggregates test results. It's the required check for branch protection.
# https://github.com/marketplace/actions/alls-green#why
Expand Down

0 comments on commit 2286711

Please sign in to comment.