From 01e8e3597758fc6f8edf3d57356f1db041647f35 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 31 Oct 2023 15:26:26 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 31 ++++++++++---------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index eb3e97b61f40..d310a0eaa3bc 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -92,20 +92,20 @@ jobs: run: | echo "::set-output name=dir::$(pip cache dir)" - - name: Cache pip dependencies - id: cache-dependencies - uses: actions/cache@v3 - with: - path: ${{ steps.pip-cache-dir.outputs.dir }} - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/edx/development.txt') }} - restore-keys: ${{ runner.os }}-pip- - - - name: Install Python dependencies - run: | - make dev-requirements - if [[ "${{ matrix.django-version }}" != "pinned" ]]; then - pip install "django~=${{ matrix.django-version }}.0" - pip check # fail if this test-reqs/Django combination is broken +# - name: Cache pip dependencies +# id: cache-dependencies +# uses: actions/cache@v3 +# with: +# path: ${{ steps.pip-cache-dir.outputs.dir }} +# key: ${{ runner.os }}-pip-${{ hashFiles('requirements/edx/development.txt') }} +# restore-keys: ${{ runner.os }}-pip- +# +# - name: Install Python dependencies +# run: | +# make dev-requirements +# if [[ "${{ matrix.django-version }}" != "pinned" ]]; then +# pip install "django~=${{ matrix.django-version }}.0" +# pip check # fail if this test-reqs/Django combination is broken fi # - name: Run Tests @@ -156,7 +156,8 @@ jobs: - name: Verify executed migrations on branch. id: capture2 run: | - echo " ${{env.query_result}}" + captured_result="${{ env.query_result }}" + echo "Captured Output: $captured_result" # query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp;) # echo "Query Result: query_result1" # echo "query_result1=${query_result1}" >> $GITHUB_ENV