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 Nov 1, 2023
1 parent 8582e2e commit 9a5b696
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,14 @@ jobs:
number1=${{ env.SECOND_QUERY }}
number2=${{ env.FIRST_QUERY }}
diff=$((number1 - number2))
data=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select app, name from django_migrations ORDER by -id limit $diff;" edxapp;)
data=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select name from django_migrations ORDER by -id limit $diff;" edxapp;)
echo "$data" > cleaned_data.txt
shell: bash

- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Here is the data:
```
$(cat cleaned_data.txt)
```
filePath: cleaned_data.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# This job aggregates test results. It's the required check for branch protection.
Expand Down

0 comments on commit 9a5b696

Please sign in to comment.