diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index 7ba719bd8616..359a57ad211c 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -187,16 +187,16 @@ 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 + - 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 + shell: bash # # - name: Comment PR # uses: thollander/actions-comment-pull-request@v2