mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 05:59:32 +08:00
GitHub Actions: 添加构建成功后的通知步骤,提高流程透明度
This commit is contained in:
13
.github/workflows/verify.yml
vendored
13
.github/workflows/verify.yml
vendored
@@ -38,3 +38,16 @@ jobs:
|
||||
|
||||
- name: Test
|
||||
run: CGO_ENABLED=0 go test -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
|
||||
eval "$line" || true
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user