2026-10-24T03:13:29.5391724Z Current runner version: '2.338.0' 2026-10-24T03:13:29.5417132Z ##[group]Runner Image Provisioner 2026-10-24T03:13:29.5418056Z Hosted Compute Agent 2026-10-24T03:13:29.5418689Z Version: 20261021.618 2026-10-24T03:13:29.5419396Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e 2026-10-24T03:13:29.5420171Z Build Date: 2026-10-21T00:45:21Z 2026-10-24T03:13:29.5420906Z Worker ID: {bc977b6c-537c-460a-9d3f-9b0621a0b372} 2026-10-24T03:13:29.5421638Z Region: westus 2026-10-24T03:13:29.5422214Z Cloud: Azure 2026-10-24T03:13:29.5422794Z ##[endgroup] 2026-10-24T03:13:29.5424450Z ##[group]Operating System 2026-10-24T03:13:29.5425123Z Ubuntu 2026-10-24T03:13:29.5425762Z 24.04.5 2026-10-24T03:13:29.5426314Z LTS 2026-10-24T03:13:29.5426866Z ##[endgroup] 2026-10-24T03:13:29.5427485Z ##[group]Runner Image 2026-10-24T03:13:29.5428080Z Image: ubuntu-24.04 2026-10-24T03:13:29.5428716Z Version: 20261012.334.1 2026-10-24T03:13:29.5429984Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-24T03:13:29.5431607Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-24T03:13:29.5432557Z ##[endgroup] 2026-10-24T03:13:29.5433850Z ##[group]GITHUB_TOKEN Permissions 2026-10-24T03:13:29.5435979Z Contents: write 2026-10-24T03:13:29.5436784Z Metadata: read 2026-10-24T03:13:29.5437379Z PullRequests: write 2026-10-24T03:13:29.5437999Z ##[endgroup] 2026-10-24T03:13:29.5440165Z Secret source: Actions 2026-10-24T03:13:29.5441276Z Cache mode: read 2026-10-24T03:13:29.5442021Z Prepare workflow directory 2026-10-24T03:13:29.5786027Z Prepare all required actions 2026-10-24T03:13:29.5835494Z Getting action download info 2026-10-24T03:13:29.9389017Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-24T03:13:30.4090861Z Complete job name: Remove preview download 2026-10-24T03:13:30.4865982Z ##[group]Run set -euo pipefail 2026-10-24T03:13:30.4866685Z set -euo pipefail 2026-10-24T03:13:30.4867207Z  2026-10-24T03:13:30.4867656Z tag="desktop-preview" 2026-10-24T03:13:30.4868179Z  2026-10-24T03:13:30.4868782Z # A stale cleanup must not delete a download that became valid 2026-10-24T03:13:30.4869689Z # again. If the PR is open and labeled once more, the next publish 2026-10-24T03:13:30.4870498Z # owns this PR's assets and replaces them itself. 2026-10-24T03:13:30.4871282Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-24T03:13:30.4871989Z  --json state,labels \ 2026-10-24T03:13:30.4872879Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-24T03:13:30.4873920Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-24T03:13:30.4874951Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-24T03:13:30.4875570Z  exit 0 2026-10-24T03:13:30.4876012Z fi 2026-10-24T03:13:30.4876429Z  2026-10-24T03:13:30.4876907Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-24T03:13:30.4877494Z  2026-10-24T03:13:30.4878129Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-24T03:13:30.4879023Z  echo "No preview release exists. Nothing to clean up." 2026-10-24T03:13:30.4879688Z  exit 0 2026-10-24T03:13:30.4880130Z fi 2026-10-24T03:13:30.4880546Z  2026-10-24T03:13:30.4881296Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-24T03:13:30.4882241Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-24T03:13:30.4882887Z  | while read -r asset; do 2026-10-24T03:13:30.4883693Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-24T03:13:30.4884828Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-24T03:13:30.4885817Z  done 2026-10-24T03:13:30.5148443Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-24T03:13:30.5149454Z env: 2026-10-24T03:13:30.5153006Z GH_TOKEN: *** 2026-10-24T03:13:30.5153590Z PR_NUMBER: 24264 2026-10-24T03:13:30.5154046Z ##[endgroup] 2026-10-24T03:13:31.9070411Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-24T03:13:31.9072335Z with: 2026-10-24T03:13:31.9083358Z 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-24T03:13:31.9103053Z github-token: *** 2026-10-24T03:13:31.9104113Z debug: false 2026-10-24T03:13:31.9105328Z user-agent: actions/github-script 2026-10-24T03:13:31.9106610Z result-encoding: json 2026-10-24T03:13:31.9107688Z retries: 0 2026-10-24T03:13:31.9108787Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-24T03:13:31.9110182Z ##[endgroup] 2026-10-24T03:13:32.5150031Z Cleaning up orphan processes