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 15af0d1 commit 7f2e60d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,21 @@ jobs:
echo "Numeric Result: $numeric_result"
echo "SECOND_QUERY=$numeric_result" >> $GITHUB_ENV
- name: Process Data
run: |
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;)
formatted_data=$(echo "$data" | tr '\t' ' ')
# echo "CUSTOM_MESSAGE=$formatted_data" >> $GITHUB_ENV
echo "$formatted_data" > multi_line_data.txt
shell: bash

- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
filePath: multi_line_data.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Process Data
# run: |
# 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;)
# formatted_data=$(echo "$data" | tr '\t' ' ')
## echo "CUSTOM_MESSAGE=$formatted_data" >> $GITHUB_ENV
# echo "$formatted_data" > multi_line_data.txt
# shell: bash
#
# - name: Comment PR
# uses: thollander/actions-comment-pull-request@v2
# filePath: multi_line_data.txt
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# 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 7f2e60d

Please sign in to comment.