Repository navigation
Commit c415c1a
fix(publish): keep newest result artifact when a publish job is restarted (#244)
When a publish job is cancelled and restarted, the run ends up with two
artifacts with the same name (for example publish-result-csharp-src). The
summary job downloaded them with merge-multiple, which extracts every match
into one directory in no guaranteed order, so the stale "failed" fragment
overwrote the newer "published" one. The release notes then showed
"publish failed" for packs that had published (seen on v0.8.3 for the C# and
Go query packs).
Replace the download step with download-latest-publish-results.sh, which lists
the run's artifacts via the API and downloads only the newest non-expired one
per name. The summary job needs actions: read for that listing.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 5930377 commit c415c1a
2 files changed
Lines changed: 48 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
394 | 398 | | |
395 | | - | |
396 | 399 | | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
401 | 403 | | |
402 | 404 | | |
403 | 405 | | |
| |||
0 commit comments