From 1787a61be6ac3852aa6544f81b1cf50031c6e03b Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Wed, 1 Nov 2023 02:38:49 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index ad014653ca03..a40dfc1cd9e4 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -196,10 +196,15 @@ jobs: 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 shell: bash + + - name: Comment PR uses: thollander/actions-comment-pull-request@v2 with: - message: ${{ formatted_data }} + message: | + Here is the data: + ${{ secrets.CUSTOM_MESSAGE }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This job aggregates test results. It's the required check for branch protection.