You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Artifact cleanup deletes all run artifacts (incl. diagnostic/log artifacts); scope to inter-job transfer artifacts #214
The Delete workflow artifacts job (present in both publish-release.yml and test-pull-request.yml) enumerates and deletes every artifact in the run:
ids=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --paginate \ --jq '.artifacts[].id')forartifact_idin$ids;do
gh api --method DELETE "repos/${{ github.repository }}/actions/artifacts/$artifact_id"done
The intent is to remove the temporary inter-job transfer artifacts (e.g. release-asset-<branch>-*, build output) whose durable copies already live on the GitHub release, to stay off the account storage quota.
But selecting .artifacts[].id deletes all artifacts indiscriminately — including any other artifacts a run uploads (diagnostic bundles, build logs / MSBuild binlogs, etc.) that are exactly what you need to debug a failed or surprising run. The blanket delete throws away the debugging trail along with the transfer artifacts.
Proposed fix
Scope the deletion to the artifacts the workflow itself created for transfer, by name pattern, rather than deleting everything:
(Extend the test(...) alternation to whatever transfer-artifact name prefixes the build uses.) Anything not matching the transfer-artifact naming — diagnostics, logs, future artifacts — is then retained.
Apply to both publish-release.yml and test-pull-request.yml (identical pattern).
Note
Run logs proper are governed by Actions log retention and are not touched by the artifacts API; this issue is specifically about logs/diagnostics uploaded as artifacts, which the blanket delete removes as collateral. Scoping the delete preserves them.
Fixed on develop via #216 (161d8a9). The fix is merged to the integration branch; it ships to consumers on the next develop → main release (two-phase model). Closing now rather than waiting for the default-branch auto-close.
Activity
Reconcile deferred list: drop bullets now resolved by #213/#214
Clean up transfer artifacts surgically at consumption, not blanket-de…
ptr727 commentedon Jun 26, 2026
Fixed on
developvia #216 (161d8a9). The fix is merged to the integration branch; it ships to consumers on the nextdevelop→mainrelease (two-phase model). Closing now rather than waiting for the default-branch auto-close.Gate asset delete on the release create/refresh condition (#218)
Skip validate-release on smoke builds (#220)