ci(mantis): fix discord thread workflow paths · openclaw/openclaw@0022c28
steipete
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -329,8 +329,10 @@ jobs:
|
329 | 329 | |
330 | 330 | run_lane() { |
331 | 331 | local lane="$1" |
332 | | - local repo_root="$worktree_root/$lane" |
333 | | - local output_dir=".artifacts/qa-e2e/mantis/discord-thread-attachment/$lane" |
| 332 | + local repo_root="${GITHUB_WORKSPACE}/${worktree_root}/${lane}" |
| 333 | + local output_dir="${GITHUB_WORKSPACE}/${root}/${lane}" |
| 334 | + rm -rf "$output_dir" |
| 335 | + mkdir -p "$output_dir" |
334 | 336 | pnpm --dir "$repo_root" openclaw qa discord \ |
335 | 337 | --repo-root "$repo_root" \ |
336 | 338 | --output-dir "$output_dir" \ |
@@ -339,9 +341,6 @@ jobs:
|
339 | 341 | --credential-role ci \ |
340 | 342 | --scenario discord-thread-reply-filepath-attachment \ |
341 | 343 | --allow-failures |
342 | | - rm -rf "$root/$lane" |
343 | | - mkdir -p "$root/$lane" |
344 | | - cp -a "$repo_root/$output_dir/." "$root/$lane/" |
345 | 344 | } |
346 | 345 | |
347 | 346 | run_lane baseline |
@@ -444,12 +443,16 @@ jobs:
|
444 | 443 | set -euo pipefail |
445 | 444 | |
446 | 445 | root=".artifacts/qa-e2e/mantis/discord-thread-attachment" |
| 446 | + artifact_url_args=() |
| 447 | + if [[ -n "${ARTIFACT_URL:-}" ]]; then |
| 448 | + artifact_url_args=(--artifact-url "$ARTIFACT_URL") |
| 449 | + fi |
447 | 450 | node scripts/mantis/publish-pr-evidence.mjs \ |
448 | 451 | --manifest "$root/mantis-evidence.json" \ |
449 | 452 | --target-pr "$TARGET_PR" \ |
450 | 453 | --artifact-root "mantis/discord-thread-attachment/pr-${TARGET_PR}/run-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" \ |
451 | 454 | --marker "<!-- mantis-discord-thread-attachment -->" \ |
452 | | - --artifact-url "$ARTIFACT_URL" \ |
| 455 | + "${artifact_url_args[@]}" \ |
453 | 456 | --run-url "https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \ |
454 | 457 | --request-source "$REQUEST_SOURCE" |
455 | 458 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。