2026-10-23T18:06:49.2387550Z Current runner version: '2.338.0' 2026-10-23T18:06:49.2414548Z ##[group]Runner Image Provisioner 2026-10-23T18:06:49.2415617Z Hosted Compute Agent 2026-10-23T18:06:49.2416235Z Version: 20261012.601 2026-10-23T18:06:49.2416924Z Commit: f3dc54e1fb89da6852db922499a0233137369e1d 2026-10-23T18:06:49.2417799Z Build Date: 2026-10-12T17:48:21Z 2026-10-23T18:06:49.2418507Z Worker ID: {40fa4ad8-026e-4eaa-b16b-86c197f9b4cf} 2026-10-23T18:06:49.2419294Z Region: northcentralus 2026-10-23T18:06:49.2419923Z Cloud: Azure 2026-10-23T18:06:49.2420534Z ##[endgroup] 2026-10-23T18:06:49.2422017Z ##[group]Operating System 2026-10-23T18:06:49.2422761Z Ubuntu 2026-10-23T18:06:49.2423374Z 24.04.5 2026-10-23T18:06:49.2423948Z LTS 2026-10-23T18:06:49.2424824Z ##[endgroup] 2026-10-23T18:06:49.2425465Z ##[group]Runner Image 2026-10-23T18:06:49.2426107Z Image: ubuntu-24.04 2026-10-23T18:06:49.2426718Z Version: 20261012.334.1 2026-10-23T18:06:49.2428153Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-23T18:06:49.2429737Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-23T18:06:49.2430738Z ##[endgroup] 2026-10-23T18:06:49.2432080Z ##[group]GITHUB_TOKEN Permissions 2026-10-23T18:06:49.2434548Z Contents: write 2026-10-23T18:06:49.2435157Z Metadata: read 2026-10-23T18:06:49.2435883Z PullRequests: write 2026-10-23T18:06:49.2436531Z ##[endgroup] 2026-10-23T18:06:49.2438868Z Secret source: Actions 2026-10-23T18:06:49.2439870Z Cache mode: read 2026-10-23T18:06:49.2440978Z Prepare workflow directory 2026-10-23T18:06:49.2786070Z Prepare all required actions 2026-10-23T18:06:49.2836707Z Getting action download info 2026-10-23T18:06:49.5360619Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-23T18:06:49.9580563Z Complete job name: Remove preview download 2026-10-23T18:06:50.0356983Z ##[group]Run set -euo pipefail 2026-10-23T18:06:50.0357717Z set -euo pipefail 2026-10-23T18:06:50.0358234Z  2026-10-23T18:06:50.0358683Z tag="desktop-preview" 2026-10-23T18:06:50.0359201Z  2026-10-23T18:06:50.0359788Z # A stale cleanup must not delete a download that became valid 2026-10-23T18:06:50.0360694Z # again. If the PR is open and labeled once more, the next publish 2026-10-23T18:06:50.0361498Z # owns this PR's assets and replaces them itself. 2026-10-23T18:06:50.0362264Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-23T18:06:50.0362968Z  --json state,labels \ 2026-10-23T18:06:50.0363837Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-23T18:06:50.0365115Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-23T18:06:50.0365888Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-23T18:06:50.0366490Z  exit 0 2026-10-23T18:06:50.0366937Z fi 2026-10-23T18:06:50.0367357Z  2026-10-23T18:06:50.0367836Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-23T18:06:50.0368418Z  2026-10-23T18:06:50.0369045Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-23T18:06:50.0369920Z  echo "No preview release exists. Nothing to clean up." 2026-10-23T18:06:50.0370584Z  exit 0 2026-10-23T18:06:50.0371020Z fi 2026-10-23T18:06:50.0371437Z  2026-10-23T18:06:50.0372148Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-23T18:06:50.0373079Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-23T18:06:50.0373719Z  | while read -r asset; do 2026-10-23T18:06:50.0374649Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-23T18:06:50.0375601Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-23T18:06:50.0376596Z  done 2026-10-23T18:06:50.0596915Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-23T18:06:50.0598114Z env: 2026-10-23T18:06:50.0602408Z GH_TOKEN: *** 2026-10-23T18:06:50.0602893Z PR_NUMBER: 23892 2026-10-23T18:06:50.0603489Z ##[endgroup] 2026-10-23T18:06:51.1447827Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-23T18:06:51.1448826Z with: 2026-10-23T18:06:51.1453899Z 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-23T18:06:51.1463850Z github-token: *** 2026-10-23T18:06:51.1464555Z debug: false 2026-10-23T18:06:51.1465118Z user-agent: actions/github-script 2026-10-23T18:06:51.1465757Z result-encoding: json 2026-10-23T18:06:51.1466299Z retries: 0 2026-10-23T18:06:51.1466845Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-23T18:06:51.1467545Z ##[endgroup] 2026-10-23T18:06:51.6145905Z Cleaning up orphan processes