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。

fix(release): use mpgrm env credentials

t8y2a021ae221edb
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ce237695de..ac87987256 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -328,7 +328,9 @@ jobs:
env:
TAG_NAME: ${{ github.ref_name }}
GITHUB_REPOSITORY: ${{ github.repository }}
+ GITHUB_USERNAME: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CNB_USERNAME: cnb
CNB_TOKEN: ${{ secrets.CNB_TOKEN }}
run: |
set -euo pipefail
@@ -338,8 +340,8 @@ jobs:
chmod +x mpgrm
./mpgrm releases sync \
- --repo "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \
- --target-repo "https://cnb:${CNB_TOKEN}@cnb.cool/${CNB_REPOSITORY}.git" \
+ --repo "https://github.com/${GITHUB_REPOSITORY}.git" \
+ --target-repo "https://cnb.cool/${CNB_REPOSITORY}.git" \
--tags "${TAG_NAME}"
docker:
diff --git a/.github/workflows/sync-cnb-release-assets.yml b/.github/workflows/sync-cnb-release-assets.yml
index 7aa9d7dea6..ddea29bc8b 100644
--- a/.github/workflows/sync-cnb-release-assets.yml
+++ b/.github/workflows/sync-cnb-release-assets.yml
@@ -23,7 +23,9 @@ jobs:
env:
TAG_NAME: ${{ inputs.tag }}
GITHUB_REPOSITORY: ${{ github.repository }}
+ GITHUB_USERNAME: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CNB_USERNAME: cnb
CNB_TOKEN: ${{ secrets.CNB_TOKEN }}
run: |
set -euo pipefail
@@ -33,6 +35,6 @@ jobs:
chmod +x mpgrm
./mpgrm releases sync \
- --repo "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \
- --target-repo "https://cnb:${CNB_TOKEN}@cnb.cool/${CNB_REPOSITORY}.git" \
+ --repo "https://github.com/${GITHUB_REPOSITORY}.git" \
+ --target-repo "https://cnb.cool/${CNB_REPOSITORY}.git" \
--tags "${TAG_NAME}"