2026-10-23T12:08:41.2409859Z Current runner version: '2.338.0' 2026-10-23T12:08:41.2448571Z ##[group]Runner Image Provisioner 2026-10-23T12:08:41.2450778Z Hosted Compute Agent 2026-10-23T12:08:41.2451821Z Version: 20261012.601 2026-10-23T12:08:41.2453058Z Commit: f3dc54e1fb89da6852db922499a0233137369e1d 2026-10-23T12:08:41.2454410Z Build Date: 2026-10-12T17:48:21Z 2026-10-23T12:08:41.2455602Z Worker ID: {d475e706-b643-4a9a-a58f-e40794918d4b} 2026-10-23T12:08:41.2457007Z Region: eastus2 2026-10-23T12:08:41.2458017Z Cloud: Azure 2026-10-23T12:08:41.2459091Z ##[endgroup] 2026-10-23T12:08:41.2461649Z ##[group]Operating System 2026-10-23T12:08:41.2462914Z Ubuntu 2026-10-23T12:08:41.2463858Z 24.04.5 2026-10-23T12:08:41.2464746Z LTS 2026-10-23T12:08:41.2465786Z ##[endgroup] 2026-10-23T12:08:41.2466759Z ##[group]Runner Image 2026-10-23T12:08:41.2467847Z Image: ubuntu-24.04 2026-10-23T12:08:41.2468947Z Version: 20261012.334.1 2026-10-23T12:08:41.2471510Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-23T12:08:41.2474569Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-23T12:08:41.2476493Z ##[endgroup] 2026-10-23T12:08:41.2478755Z ##[group]GITHUB_TOKEN Permissions 2026-10-23T12:08:41.2482116Z Contents: write 2026-10-23T12:08:41.2483141Z Metadata: read 2026-10-23T12:08:41.2484334Z PullRequests: write 2026-10-23T12:08:41.2485414Z ##[endgroup] 2026-10-23T12:08:41.2488821Z Secret source: Actions 2026-10-23T12:08:41.2490893Z Cache mode: read 2026-10-23T12:08:41.2492115Z Prepare workflow directory 2026-10-23T12:08:41.3007052Z Prepare all required actions 2026-10-23T12:08:41.3085325Z Getting action download info 2026-10-23T12:08:41.5138075Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-23T12:08:41.8293881Z Complete job name: Remove preview download 2026-10-23T12:08:41.9112871Z ##[group]Run set -euo pipefail 2026-10-23T12:08:41.9113717Z set -euo pipefail 2026-10-23T12:08:41.9114333Z  2026-10-23T12:08:41.9114860Z tag="desktop-preview" 2026-10-23T12:08:41.9115458Z  2026-10-23T12:08:41.9116175Z # A stale cleanup must not delete a download that became valid 2026-10-23T12:08:41.9117209Z # again. If the PR is open and labeled once more, the next publish 2026-10-23T12:08:41.9118221Z # owns this PR's assets and replaces them itself. 2026-10-23T12:08:41.9119118Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-23T12:08:41.9120176Z  --json state,labels \ 2026-10-23T12:08:41.9121203Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-23T12:08:41.9122361Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-23T12:08:41.9123257Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-23T12:08:41.9123949Z  exit 0 2026-10-23T12:08:41.9124469Z fi 2026-10-23T12:08:41.9124956Z  2026-10-23T12:08:41.9125503Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-23T12:08:41.9126184Z  2026-10-23T12:08:41.9126919Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-23T12:08:41.9127931Z  echo "No preview release exists. Nothing to clean up." 2026-10-23T12:08:41.9128701Z  exit 0 2026-10-23T12:08:41.9129492Z fi 2026-10-23T12:08:41.9130128Z  2026-10-23T12:08:41.9130967Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-23T12:08:41.9132030Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-23T12:08:41.9132781Z  | while read -r asset; do 2026-10-23T12:08:41.9133693Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-23T12:08:41.9134809Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-23T12:08:41.9135971Z  done 2026-10-23T12:08:41.9398437Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-23T12:08:41.9400002Z env: 2026-10-23T12:08:41.9404755Z GH_TOKEN: *** 2026-10-23T12:08:41.9405597Z PR_NUMBER: 23889 2026-10-23T12:08:41.9406268Z ##[endgroup] 2026-10-23T12:08:45.0537491Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-23T12:08:45.0538611Z with: 2026-10-23T12:08:45.0544685Z 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-23T12:08:45.0555525Z github-token: *** 2026-10-23T12:08:45.0556148Z debug: false 2026-10-23T12:08:45.0556802Z user-agent: actions/github-script 2026-10-23T12:08:45.0557532Z result-encoding: json 2026-10-23T12:08:45.0558132Z retries: 0 2026-10-23T12:08:45.0558757Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-23T12:08:45.0559663Z ##[endgroup] 2026-10-23T12:08:45.5528879Z Cleaning up orphan processes