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,