GitHub Actions: 添加构建成功后的通知步骤,提高流程透明度

This commit is contained in:
2026-01-29 17:22:05 +08:00
parent e428f5bddb
commit 1ca3d15c2f

View File

@@ -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