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

Skip to content

Commit 7df8275

Browse files
authored
GITHUB_RUN_ID
1 parent 7200c40 commit 7df8275

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/prepmsg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -ex
55
[ $# -ne 2 ] && ( echo "Expected 1 input and 1 output files, got $#"; exit; )
66
[ ! -f $1 ] && ( echo "Input file $1 not found, skipping."; exit; )
77
[ -z "${GITHUB_REPOSITORY}" ] && (echo "GITHUB_REPOSITORY is empty."; exit 1;)
8-
[ -z "${GITHUB_RUN_NUMBER}" ] && (echo "GITHUB_RUN_NUMBER is empty."; exit 1;)
8+
[ -z "${GITHUB_RUN_ID}" ] && (echo "GITHUB_RUN_ID is empty."; exit 1;)
99
[ -z "${GITHUB_JOB}" ] && (echo "GITHUB_JOB is empty."; exit 1;)
1010

11-
URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER}"
12-
echo "❌ *${GITHUB_JOB}* ([ID *${GITHUB_RUN_NUMBER}*]($URL)):" > $2
11+
URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
12+
echo "❌ *${GITHUB_JOB}* ([ID *${GITHUB_RUN_ID}*]($URL)):" > $2
1313
grep 'cpython/Doc/.*WARNING:' $1 | \
1414
sed 's|.*/cpython/Doc|Doc|' | \
1515
uniq | \

0 commit comments

Comments
 (0)