From 1984e017857be53714ff5f15457998ecaee35eae Mon Sep 17 00:00:00 2001 From: hanxuanyu <2252193204@qq.com> Date: Thu, 29 Jan 2026 19:03:51 +0800 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions:=20=E6=9B=BF=E6=8D=A2=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E4=B8=BA=20`secrets`=EF=BC=8C=E5=B9=B6=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=9F=BA=E4=BA=8E=E6=95=B0=E5=AD=97=E7=9A=84=E5=BB=B6=E8=BF=9F?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/verify.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 659c7df..547173d 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -42,15 +42,19 @@ 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 + echo "Executing: $line" eval "$line -w \"\\nHTTP Status: %{http_code}\\n\"" || true else + echo "Executing: $line" eval "$line" || true fi echo ""