diff --git a/.github/workflows/cos-auto-join.yml b/.github/workflows/cos-auto-join.yml index b9ab94d3..d6dfd6c1 100644 --- a/.github/workflows/cos-auto-join.yml +++ b/.github/workflows/cos-auto-join.yml @@ -94,7 +94,7 @@ jobs: fi - name: 🔔 新接入通知 - if: steps.check.outputs.connected_count > 0 + if: steps.check.outputs.connected_count != '0' && steps.check.outputs.connected_count != '' uses: actions/github-script@v7 with: script: | diff --git a/scripts/cos-auto-join-agent.js b/scripts/cos-auto-join-agent.js index 002df297..b9a6eef8 100644 --- a/scripts/cos-auto-join-agent.js +++ b/scripts/cos-auto-join-agent.js @@ -139,6 +139,7 @@ function writeLog(entry) { // ─── 检查单个成员的COS桶 ─── async function checkMemberBucket(member) { const { persona_id, bucket, region } = member; + // 支持两套密钥命名(ZY_OSS_* 用于铸渊核心桶 · COS_SECRET_* 用于团队共享桶) const secretId = process.env.ZY_OSS_KEY || process.env.COS_SECRET_ID || ''; const secretKey = process.env.ZY_OSS_SECRET || process.env.COS_SECRET_KEY || '';