From 2e4ac3106fbef6bc2413b17dadb8d3830a3f5eae Mon Sep 17 00:00:00 2001 From: Cam Quilici Date: Wed, 29 Jul 2026 15:07:37 -0500 Subject: [PATCH] fix(ci): describe persistent staged runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update staging acknowledgments and completion callbacks to reflect cumulative run retention and same-run updates. 中文:更新预发布请求确认与完成回调,明确多个运行会持续保留,重复发布同一运行会更新其数据。 --- .github/workflows/stage-results-callback.yml | 12 ++++++++++-- .github/workflows/stage-results.yml | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stage-results-callback.yml b/.github/workflows/stage-results-callback.yml index 05d2e514b6..f960956057 100644 --- a/.github/workflows/stage-results-callback.yml +++ b/.github/workflows/stage-results-callback.yml @@ -66,9 +66,17 @@ jobs: ? [ `@${requestedBy} staged run ${runId}: ${chartUrl}`, '', - `This shared staging slot remains available until the next \`/stage-results\` request. [Staging workflow](${appRunUrl})`, + `This run remains available across future \`/stage-results\` requests. Staging the same run ID again updates its staged data. [Staging workflow](${appRunUrl})`, + '', + `@${requestedBy} 已将运行 ${runId} 发布到预发布环境:${chartUrl}`, + '', + `后续的 \`/stage-results\` 请求不会移除此运行;再次发布相同的运行 ID 会更新其预发布数据。[预发布工作流](${appRunUrl})`, ].join('\n') - : `@${requestedBy} staging run ${runId} failed. [Inspect the staging workflow](${appRunUrl}).`; + : [ + `@${requestedBy} staging run ${runId} failed. [Inspect the staging workflow](${appRunUrl}).`, + '', + `@${requestedBy} 预发布运行 ${runId} 失败。[查看预发布工作流](${appRunUrl})。`, + ].join('\n'); if (commentId) { await github.rest.issues.updateComment({ diff --git a/.github/workflows/stage-results.yml b/.github/workflows/stage-results.yml index e56476e00c..2fce4bee43 100644 --- a/.github/workflows/stage-results.yml +++ b/.github/workflows/stage-results.yml @@ -256,7 +256,11 @@ jobs: with: github-token: ${{ github.token }} script: | - const body = `@${process.env.REQUESTED_BY} staging [run ${process.env.RUN_ID}](${process.env.RUN_URL}). The shared staging slot is serialized; a completion link will be posted here.`; + const body = [ + `@${process.env.REQUESTED_BY} staging [run ${process.env.RUN_ID}](${process.env.RUN_URL}). Existing staged runs will be preserved; a completion link will be posted here.`, + '', + `@${process.env.REQUESTED_BY} 正在将[运行 ${process.env.RUN_ID}](${process.env.RUN_URL})发布到预发布环境。已有的预发布运行会继续保留;完成后将在此处提供链接。`, + ].join('\n'); const comment = await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo,