diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index 3171d4c3dc50..51cf3f79321e 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -194,18 +194,18 @@ 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 app, name from django_migrations ORDER by -id limit $diff;" edxapp;) formatted_data=$(echo "$data" | tr '\t' ' ') echo "echo ${{ formatted_data }}" - echo "CUSTOM_MESSAGE=$formatted_data" >> $GITHUB_ENV +# 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 with: - message: | - Here is the data: - ${{ secrets.CUSTOM_MESSAGE }} + with: + filePath: /path/to/file.txt GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This job aggregates test results. It's the required check for branch protection.