Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e821f9 commit 53d83d2Copy full SHA for 53d83d2
scripts/setup-notif-message.sh
@@ -1,10 +1,12 @@
1
#!/bin/sh
2
# Prepare message for Telegram notification
3
4
+set -ex
5
+
6
[ $# -ne 2 ] && ( echo "Expected 1 input and 1 output files, got $#."; exit; )0
7
[ ! -f $1 ] && ( echo "Input file $1 not found, skipping."; exit; )
8
9
URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER}"
10
11
echo "❌ *${GITHUB_JOB}* ([ID *${GITHUB_RUN_NUMBER}*]($URL)):" > $2
-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