mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-03-08 07:29:32 +08:00
Compare commits
3 Commits
31f32bdb63
...
39d4f9c730
| Author | SHA1 | Date | |
|---|---|---|---|
| 39d4f9c730 | |||
| cee6bc1027 | |||
| 1984e01785 |
8
.github/workflows/verify.yml
vendored
8
.github/workflows/verify.yml
vendored
@@ -42,13 +42,15 @@ jobs:
|
||||
- name: Notification
|
||||
if: success()
|
||||
env:
|
||||
NOTIFY_CURLS: ${{ vars.NOTIFY_CURLS }}
|
||||
NOTIFY_CURLS: ${{ secrets.NOTIFY_CURLS }}
|
||||
run: |
|
||||
if [ -n "$NOTIFY_CURLS" ]; then
|
||||
printf "%s\n" "$NOTIFY_CURLS" | while read -r line; do
|
||||
if [ -n "$line" ]; then
|
||||
echo "Executing: $line"
|
||||
if [[ "$line" == curl* ]]; then
|
||||
if [[ "$line" =~ ^[0-9] ]]; then
|
||||
echo "Pausing for $line ms...."
|
||||
sleep "$(awk "BEGIN {print $line/1000}")" || true
|
||||
elif [[ "$line" == curl* ]]; then
|
||||
eval "$line -w \"\\nHTTP Status: %{http_code}\\n\"" || true
|
||||
else
|
||||
eval "$line" || true
|
||||
|
||||
Reference in New Issue
Block a user