Skip to content

Commit 4694586

Browse files
committed
build: capturing new migrations.
1 parent f0913e1 commit 4694586

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/capture_new_migrations.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,18 @@ jobs:
194194
number1=${{ env.SECOND_QUERY }}
195195
number2=${{ env.FIRST_QUERY }}
196196
diff=$((number1 - number2))
197-
data=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select app, name from django_migrations ORDER by -id limit $diff;" edxapp;)
197+
data=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select app, name from django_migrations ORDER by -id limit $diff;" edxapp;)
198198
formatted_data=$(echo "$data" | tr '\t' ' ')
199199
echo "echo ${{ formatted_data }}"
200-
echo "CUSTOM_MESSAGE=$formatted_data" >> $GITHUB_ENV
200+
# echo "CUSTOM_MESSAGE=$formatted_data" >> $GITHUB_ENV
201+
echo "$formatted_data" > multi_line_data.txt
201202
shell: bash
202203

203204
- name: Comment PR
204205
uses: thollander/actions-comment-pull-request@v2
205206
with:
206-
message: |
207-
Here is the data:
208-
${{ secrets.CUSTOM_MESSAGE }}
207+
with:
208+
filePath: /path/to/file.txt
209209
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
210210

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

0 commit comments

Comments
 (0)