2026-10-25T14:05:16.6403040Z Current runner version: '2.338.0' 2026-10-25T14:05:16.6424244Z ##[group]Runner Image Provisioner 2026-10-25T14:05:16.6425054Z Hosted Compute Agent 2026-10-25T14:05:16.6425601Z Version: 20261021.618 2026-10-25T14:05:16.6426171Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e 2026-10-25T14:05:16.6426841Z Build Date: 2026-10-21T00:45:21Z 2026-10-25T14:05:16.6427421Z Worker ID: {a4e531d6-b28a-4d05-8db9-7fa0b7224988} 2026-10-25T14:05:16.6428125Z Region: westus3 2026-10-25T14:05:16.6428641Z Cloud: Azure 2026-10-25T14:05:16.6429139Z ##[endgroup] 2026-10-25T14:05:16.6430257Z ##[group]Operating System 2026-10-25T14:05:16.6430815Z Ubuntu 2026-10-25T14:05:16.6431335Z 24.04.5 2026-10-25T14:05:16.6431992Z LTS 2026-10-25T14:05:16.6432427Z ##[endgroup] 2026-10-25T14:05:16.6433008Z ##[group]Runner Image 2026-10-25T14:05:16.6433537Z Image: ubuntu-24.04 2026-10-25T14:05:16.6434072Z Version: 20261012.334.1 2026-10-25T14:05:16.6435179Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-25T14:05:16.6436491Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-25T14:05:16.6437298Z ##[endgroup] 2026-10-25T14:05:16.6438384Z ##[group]GITHUB_TOKEN Permissions 2026-10-25T14:05:16.6440024Z Contents: write 2026-10-25T14:05:16.6440629Z Metadata: read 2026-10-25T14:05:16.6441140Z PullRequests: write 2026-10-25T14:05:16.6441756Z ##[endgroup] 2026-10-25T14:05:16.6443568Z Secret source: Actions 2026-10-25T14:05:16.6444359Z Cache mode: read 2026-10-25T14:05:16.6445025Z Prepare workflow directory 2026-10-25T14:05:16.6705648Z Prepare all required actions 2026-10-25T14:05:16.6745265Z Getting action download info 2026-10-25T14:05:16.9775791Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-25T14:05:17.6628517Z Complete job name: Remove preview download 2026-10-25T14:05:17.7758569Z ##[group]Run set -euo pipefail 2026-10-25T14:05:17.7759150Z set -euo pipefail 2026-10-25T14:05:17.7759561Z  2026-10-25T14:05:17.7759926Z tag="desktop-preview" 2026-10-25T14:05:17.7760346Z  2026-10-25T14:05:17.7760829Z # A stale cleanup must not delete a download that became valid 2026-10-25T14:05:17.7761681Z # again. If the PR is open and labeled once more, the next publish 2026-10-25T14:05:17.7762342Z # owns this PR's assets and replaces them itself. 2026-10-25T14:05:17.7762966Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-25T14:05:17.7763546Z  --json state,labels \ 2026-10-25T14:05:17.7764265Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-25T14:05:17.7765081Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-25T14:05:17.7765686Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-25T14:05:17.7766169Z  exit 0 2026-10-25T14:05:17.7766524Z fi 2026-10-25T14:05:17.7766862Z  2026-10-25T14:05:17.7767242Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-25T14:05:17.7767710Z  2026-10-25T14:05:17.7768212Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-25T14:05:17.7768914Z  echo "No preview release exists. Nothing to clean up." 2026-10-25T14:05:17.7769455Z  exit 0 2026-10-25T14:05:17.7769810Z fi 2026-10-25T14:05:17.7770138Z  2026-10-25T14:05:17.7771010Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-25T14:05:17.7771848Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-25T14:05:17.7772371Z  | while read -r asset; do 2026-10-25T14:05:17.7773004Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-25T14:05:17.7773757Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-25T14:05:17.7774533Z  done 2026-10-25T14:05:17.9373881Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-25T14:05:17.9374677Z env: 2026-10-25T14:05:17.9378029Z GH_TOKEN: *** 2026-10-25T14:05:17.9378402Z PR_NUMBER: 22807 2026-10-25T14:05:17.9379059Z ##[endgroup] 2026-10-25T14:05:20.1819543Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-25T14:05:20.1820994Z with: 2026-10-25T14:05:20.1828798Z 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-25T14:05:20.1844549Z github-token: *** 2026-10-25T14:05:20.1845369Z debug: false 2026-10-25T14:05:20.1846228Z user-agent: actions/github-script 2026-10-25T14:05:20.1847234Z result-encoding: json 2026-10-25T14:05:20.1848065Z retries: 0 2026-10-25T14:05:20.1848909Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-25T14:05:20.1849986Z ##[endgroup] 2026-10-25T14:05:20.7596868Z Cleaning up orphan processes