2026-10-23T20:47:48.5698932Z Current runner version: '2.338.0' 2026-10-23T20:47:48.5718961Z ##[group]Runner Image Provisioner 2026-10-23T20:47:48.5719682Z Hosted Compute Agent 2026-10-23T20:47:48.5720078Z Version: 20261021.618 2026-10-23T20:47:48.5720550Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e 2026-10-23T20:47:48.5721038Z Build Date: 2026-10-21T00:45:21Z 2026-10-23T20:47:48.5721501Z Worker ID: {32e3f36e-7eec-4e2e-9202-8781402fcdd2} 2026-10-23T20:47:48.5722044Z Region: centralus 2026-10-23T20:47:48.5722425Z Cloud: Azure 2026-10-23T20:47:48.5722799Z ##[endgroup] 2026-10-23T20:47:48.5723743Z ##[group]Operating System 2026-10-23T20:47:48.5724413Z Ubuntu 2026-10-23T20:47:48.5724867Z 24.04.5 2026-10-23T20:47:48.5725215Z LTS 2026-10-23T20:47:48.5725555Z ##[endgroup] 2026-10-23T20:47:48.5725974Z ##[group]Runner Image 2026-10-23T20:47:48.5726368Z Image: ubuntu-24.04 2026-10-23T20:47:48.5726775Z Version: 20261012.334.1 2026-10-23T20:47:48.5727674Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-23T20:47:48.5728687Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-23T20:47:48.5729310Z ##[endgroup] 2026-10-23T20:47:48.5730208Z ##[group]GITHUB_TOKEN Permissions 2026-10-23T20:47:48.5731564Z Contents: write 2026-10-23T20:47:48.5732000Z Metadata: read 2026-10-23T20:47:48.5732426Z PullRequests: write 2026-10-23T20:47:48.5732799Z ##[endgroup] 2026-10-23T20:47:48.5734558Z Secret source: Actions 2026-10-23T20:47:48.5735145Z Cache mode: read 2026-10-23T20:47:48.5735686Z Prepare workflow directory 2026-10-23T20:47:48.6487590Z Prepare all required actions 2026-10-23T20:47:48.6536651Z Getting action download info 2026-10-23T20:47:48.8861381Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-23T20:47:49.7143059Z Complete job name: Remove preview download 2026-10-23T20:47:49.8087863Z ##[group]Run set -euo pipefail 2026-10-23T20:47:49.8088386Z set -euo pipefail 2026-10-23T20:47:49.8088739Z  2026-10-23T20:47:49.8089059Z tag="desktop-preview" 2026-10-23T20:47:49.8089409Z  2026-10-23T20:47:49.8089817Z # A stale cleanup must not delete a download that became valid 2026-10-23T20:47:49.8090399Z # again. If the PR is open and labeled once more, the next publish 2026-10-23T20:47:49.8090932Z # owns this PR's assets and replaces them itself. 2026-10-23T20:47:49.8091447Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-23T20:47:49.8091929Z  --json state,labels \ 2026-10-23T20:47:49.8092510Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-23T20:47:49.8093173Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-23T20:47:49.8093688Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-23T20:47:49.8094357Z  exit 0 2026-10-23T20:47:49.8094630Z fi 2026-10-23T20:47:49.8094885Z  2026-10-23T20:47:49.8095173Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-23T20:47:49.8095534Z  2026-10-23T20:47:49.8096008Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-23T20:47:49.8096829Z  echo "No preview release exists. Nothing to clean up." 2026-10-23T20:47:49.8097271Z  exit 0 2026-10-23T20:47:49.8097536Z fi 2026-10-23T20:47:49.8097792Z  2026-10-23T20:47:49.8098232Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-23T20:47:49.8098807Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-23T20:47:49.8099205Z  | while read -r asset; do 2026-10-23T20:47:49.8099685Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-23T20:47:49.8100271Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-23T20:47:49.8100925Z  done 2026-10-23T20:47:49.8325630Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-23T20:47:49.8326207Z env: 2026-10-23T20:47:49.8328673Z GH_TOKEN: *** 2026-10-23T20:47:49.8328952Z PR_NUMBER: 24229 2026-10-23T20:47:49.8329231Z ##[endgroup] 2026-10-23T20:47:51.2175553Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-23T20:47:51.2175902Z with: 2026-10-23T20:47:51.2177375Z script: const marker = ""; const comments = await github.paginate(github.rest.issues.listComments, { owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, per_page: 100, }); const existing = comments.find( (comment) => comment.user?.login === "github-actions[bot]" && comment.body?.includes(marker), ); if (!existing) { return; } await github.rest.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, comment_id: existing.id, body: [ marker, "### macOS preview", "", "The preview download was removed because this PR closed or the preview label was removed.", ].join("\n"), }); 2026-10-23T20:47:51.2180595Z github-token: *** 2026-10-23T20:47:51.2180763Z debug: false 2026-10-23T20:47:51.2180966Z user-agent: actions/github-script 2026-10-23T20:47:51.2181172Z result-encoding: json 2026-10-23T20:47:51.2181340Z retries: 0 2026-10-23T20:47:51.2181516Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-23T20:47:51.2181758Z ##[endgroup] 2026-10-23T20:47:51.7726608Z Cleaning up orphan processes