mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 07:29:33 +08:00
GitHub Actions: 添加响应输出日志和延迟指令打印优化
This commit is contained in:
3
.github/workflows/verify.yml
vendored
3
.github/workflows/verify.yml
vendored
@@ -48,9 +48,10 @@ jobs:
|
|||||||
printf "%s\n" "$NOTIFY_CURLS" | while read -r line; do
|
printf "%s\n" "$NOTIFY_CURLS" | while read -r line; do
|
||||||
if [ -n "$line" ]; then
|
if [ -n "$line" ]; then
|
||||||
if [[ "$line" =~ ^[0-9] ]]; then
|
if [[ "$line" =~ ^[0-9] ]]; then
|
||||||
echo "Pausing for $line ms...."
|
echo "Pausing for $line ms....."
|
||||||
sleep "$(awk "BEGIN {print $line/1000}")" || true
|
sleep "$(awk "BEGIN {print $line/1000}")" || true
|
||||||
elif [[ "$line" == curl* ]]; then
|
elif [[ "$line" == curl* ]]; then
|
||||||
|
echo "Response:"
|
||||||
eval "$line -w \"\\nHTTP Status: %{http_code}\\n\"" || true
|
eval "$line -w \"\\nHTTP Status: %{http_code}\\n\"" || true
|
||||||
else
|
else
|
||||||
eval "$line" || true
|
eval "$line" || true
|
||||||
|
|||||||
Reference in New Issue
Block a user