mirror of
https://git.fightbot.fun/hxuanyu/FileRelay.git
synced 2026-04-07 13:21:43 +08:00
Compare commits
1 Commits
bugfix/doc
...
3601e59923
| Author | SHA1 | Date | |
|---|---|---|---|
| 3601e59923 |
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@@ -35,24 +35,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Go
|
- name: Build Go
|
||||||
run: go build -v .
|
run: go build -v .
|
||||||
- name: Notification
|
|
||||||
if: success()
|
|
||||||
env:
|
|
||||||
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
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user