Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7200c40

Browse files
authored
make each line a codeblock
1 parent fd07930 commit 7200c40

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/prepmsg.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ set -ex
1010

1111
URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER}"
1212
echo "❌ *${GITHUB_JOB}* ([ID *${GITHUB_RUN_NUMBER}*]($URL)):" > $2
13-
echo '```' >> $2
14-
grep 'cpython/Doc/.*WARNING:' $1 | sed 's|.*/cpython/Doc|Doc|' | uniq >> $2
15-
echo '```' >> $2
13+
grep 'cpython/Doc/.*WARNING:' $1 | \
14+
sed 's|.*/cpython/Doc|Doc|' | \
15+
uniq | \
16+
sed 's|^|```\n|;s|$|\n```\n|' \
17+
>> $2

0 commit comments

Comments
 (0)