Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

ci: rebase-retry contributor snapshot push against main

zipgd47e38c29e71
diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml
index 503eeca6b8..d02c0f6c50 100644
--- a/.github/workflows/contributors.yml
+++ b/.github/workflows/contributors.yml
@@ -49,4 +49,14 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/data/contributors.json
git commit -m "chore(docs): refresh contributor activity"
- git push
+ # 抓取快照要跑十几分钟,期间 main 被其它合并推进时直推会被拒(fetch first)。
+ # 先 rebase 到最新 main 再重试,避免每天定时任务留下一个红 run。
+ for attempt in 1 2 3 4 5; do
+ if git push; then
+ exit 0
+ fi
+ echo "::warning::push attempt ${attempt} was rejected; rebasing onto origin/main"
+ git pull --rebase origin main
+ done
+ echo "::error::Unable to push the refreshed contributor snapshot after 5 attempts."
+ exit 1