Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/stage-results-callback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/stage-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down