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

Skip to content

Commit 53d83d2

Browse files
authored
debug script
1 parent 6e821f9 commit 53d83d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/setup-notif-message.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/sh
22
# Prepare message for Telegram notification
33

4+
set -ex
5+
46
[ $# -ne 2 ] && ( echo "Expected 1 input and 1 output files, got $#."; exit; )0
57
[ ! -f $1 ] && ( echo "Input file $1 not found, skipping."; exit; )
68

79
URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER}"
810

911
echo "❌ *${GITHUB_JOB}* ([ID *${GITHUB_RUN_NUMBER}*]($URL)):" > $2
10-
grep 'cpython/Doc/.*WARNING:' $1 | sed 's|.*/cpython/Doc|Doc|' | uniq >> $2
12+
grep 'cpython/Doc/.*WARNING:' $1 | sed 's|.*/cpython/Doc|Doc|' | uniq >> $2

0 commit comments

Comments
 (0)