2026-10-23T20:48:32.1973324Z Current runner version: '2.338.0' 2026-10-23T20:48:32.1998505Z ##[group]Runner Image Provisioner 2026-10-23T20:48:32.1999344Z Hosted Compute Agent 2026-10-23T20:48:32.2000308Z Version: 20261012.601 2026-10-23T20:48:32.2000945Z Commit: f3dc54e1fb89da6852db922499a0233137369e1d 2026-10-23T20:48:32.2001770Z Build Date: 2026-10-12T17:48:21Z 2026-10-23T20:48:32.2002470Z Worker ID: {fe7cb91f-c1aa-4028-aaaf-97110424a1da} 2026-10-23T20:48:32.2003214Z Region: westus 2026-10-23T20:48:32.2003816Z Cloud: Azure 2026-10-23T20:48:32.2004387Z ##[endgroup] 2026-10-23T20:48:32.2005985Z ##[group]Operating System 2026-10-23T20:48:32.2006701Z Ubuntu 2026-10-23T20:48:32.2007228Z 24.04.5 2026-10-23T20:48:32.2007849Z LTS 2026-10-23T20:48:32.2008373Z ##[endgroup] 2026-10-23T20:48:32.2008963Z ##[group]Runner Image 2026-10-23T20:48:32.2010013Z Image: ubuntu-24.04 2026-10-23T20:48:32.2010710Z Version: 20261012.334.1 2026-10-23T20:48:32.2012070Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-23T20:48:32.2013706Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-23T20:48:32.2014706Z ##[endgroup] 2026-10-23T20:48:32.2015995Z ##[group]GITHUB_TOKEN Permissions 2026-10-23T20:48:32.2017918Z Contents: write 2026-10-23T20:48:32.2018555Z Metadata: read 2026-10-23T20:48:32.2019257Z PullRequests: write 2026-10-23T20:48:32.2020123Z ##[endgroup] 2026-10-23T20:48:32.2022197Z Secret source: Actions 2026-10-23T20:48:32.2023262Z Cache mode: read 2026-10-23T20:48:32.2023969Z Prepare workflow directory 2026-10-23T20:48:32.2364493Z Prepare all required actions 2026-10-23T20:48:32.2414525Z Getting action download info 2026-10-23T20:48:32.5980642Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-23T20:48:33.1033604Z Complete job name: Remove preview download 2026-10-23T20:48:33.1850156Z ##[group]Run set -euo pipefail 2026-10-23T20:48:33.1850864Z set -euo pipefail 2026-10-23T20:48:33.1851387Z  2026-10-23T20:48:33.1851839Z tag="desktop-preview" 2026-10-23T20:48:33.1852366Z  2026-10-23T20:48:33.1852969Z # A stale cleanup must not delete a download that became valid 2026-10-23T20:48:33.1853865Z # again. If the PR is open and labeled once more, the next publish 2026-10-23T20:48:33.1854684Z # owns this PR's assets and replaces them itself. 2026-10-23T20:48:33.1855461Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-23T20:48:33.1856193Z  --json state,labels \ 2026-10-23T20:48:33.1857085Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-23T20:48:33.1858115Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-23T20:48:33.1858933Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-23T20:48:33.1859678Z  exit 0 2026-10-23T20:48:33.1860137Z fi 2026-10-23T20:48:33.1860555Z  2026-10-23T20:48:33.1861031Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-23T20:48:33.1861624Z  2026-10-23T20:48:33.1862273Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-23T20:48:33.1863171Z  echo "No preview release exists. Nothing to clean up." 2026-10-23T20:48:33.1863855Z  exit 0 2026-10-23T20:48:33.1864307Z fi 2026-10-23T20:48:33.1864729Z  2026-10-23T20:48:33.1865461Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-23T20:48:33.1866396Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-23T20:48:33.1867053Z  | while read -r asset; do 2026-10-23T20:48:33.1867850Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-23T20:48:33.1868808Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-23T20:48:33.1870143Z  done 2026-10-23T20:48:33.2237429Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-23T20:48:33.2238612Z env: 2026-10-23T20:48:33.2243511Z GH_TOKEN: *** 2026-10-23T20:48:33.2244106Z PR_NUMBER: 23970 2026-10-23T20:48:33.2244553Z ##[endgroup] 2026-10-23T20:48:34.7523447Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-23T20:48:34.7525345Z with: 2026-10-23T20:48:34.7536390Z 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:48:34.7556127Z github-token: *** 2026-10-23T20:48:34.7557202Z debug: false 2026-10-23T20:48:34.7558293Z user-agent: actions/github-script 2026-10-23T20:48:34.7559685Z result-encoding: json 2026-10-23T20:48:34.7560781Z retries: 0 2026-10-23T20:48:34.7561873Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-23T20:48:34.7563249Z ##[endgroup] 2026-10-23T20:48:35.3597760Z Cleaning up orphan processes