feat: 修改从gitea上获取配置的逻辑
All checks were successful
Redis序列化结构检查 / redis-schema-check (push) Has been skipped
All checks were successful
Redis序列化结构检查 / redis-schema-check (push) Has been skipped
This commit is contained in:
@@ -2,13 +2,10 @@
|
||||
# Redis 序列化结构变更检测 — 业务仓库配置
|
||||
# ============================================================
|
||||
# 说明:
|
||||
# - 本文件为业务覆盖配置,会与 jar 内 default-config.yaml 深度合并
|
||||
# - 本配置文件为业务覆盖配置,会与 jar 内 default-config.yaml 深度合并
|
||||
# - 未声明的项沿用工具内置默认值(忽略规则、检测模式等)
|
||||
# - 上线策略:先 notify 观察 1 周,稳定后改为 mode: block
|
||||
|
||||
# 运行模式
|
||||
# notify - 仅通知,不阻断流水线
|
||||
# block - 按 block_severities 阻断流水线(exit 1)
|
||||
# 运行模式 notify-仅通知,不阻断流水线 block-按block_severities阻断流水线(exit 1)
|
||||
mode: notify
|
||||
|
||||
# block 模式下触发阻断的严重级别(P0/P1/P2 全部阻断)
|
||||
@@ -20,9 +17,9 @@ block_severities:
|
||||
# 通知配置
|
||||
notify:
|
||||
enabled: true
|
||||
webhook_env: WECOM_ROBOT_WEBHOOK
|
||||
webhook_url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=fa14f0b3-e01a-40f6-96bd-e18beb94e85e
|
||||
notify_on_clean: false
|
||||
title_prefix: "[Redis结构变更]"
|
||||
title_prefix: "[Redis数据结构变更]"
|
||||
|
||||
# 观察期:先只扫描 jnpf-tenant 模块,稳定后改为 include_modules: []
|
||||
include_modules:
|
||||
|
||||
@@ -60,8 +60,6 @@ jobs:
|
||||
echo "Java: $(java -version 2>&1 | head -1)"
|
||||
|
||||
- name: 执行 Redis 序列化结构检测
|
||||
env:
|
||||
WECOM_ROBOT_WEBHOOK: ${{ secrets.WECOM_ROBOT_WEBHOOK }}
|
||||
run: |
|
||||
OLD_SHA=$(git rev-parse HEAD~1 2>/dev/null || echo "")
|
||||
if [ -z "$OLD_SHA" ]; then
|
||||
|
||||
Reference in New Issue
Block a user