2026-10-27T19:14:52.1854930Z Current runner version: '2.338.0' 2026-10-27T19:14:52.1881218Z ##[group]Runner Image Provisioner 2026-10-27T19:14:52.1882100Z Hosted Compute Agent 2026-10-27T19:14:52.1883048Z Version: 20261021.618 2026-10-27T19:14:52.1883714Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e 2026-10-27T19:14:52.1884468Z Build Date: 2026-10-21T00:45:21Z 2026-10-27T19:14:52.1885235Z Worker ID: {ed3a2688-416a-4097-ad59-6353e3413143} 2026-10-27T19:14:52.1885944Z Region: westus2 2026-10-27T19:14:52.1886527Z Cloud: Azure 2026-10-27T19:14:52.1887092Z ##[endgroup] 2026-10-27T19:14:52.1888753Z ##[group]Operating System 2026-10-27T19:14:52.1889568Z Ubuntu 2026-10-27T19:14:52.1890109Z 24.04.5 2026-10-27T19:14:52.1890655Z LTS 2026-10-27T19:14:52.1891198Z ##[endgroup] 2026-10-27T19:14:52.1891787Z ##[group]Runner Image 2026-10-27T19:14:52.1892698Z Image: ubuntu-24.04 2026-10-27T19:14:52.1893292Z Version: 20261012.334.1 2026-10-27T19:14:52.1894646Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md 2026-10-27T19:14:52.1896286Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334 2026-10-27T19:14:52.1897328Z ##[endgroup] 2026-10-27T19:14:52.1898620Z ##[group]GITHUB_TOKEN Permissions 2026-10-27T19:14:52.1900799Z Contents: write 2026-10-27T19:14:52.1901475Z Metadata: read 2026-10-27T19:14:52.1902189Z PullRequests: write 2026-10-27T19:14:52.1903102Z ##[endgroup] 2026-10-27T19:14:52.1905205Z Secret source: Actions 2026-10-27T19:14:52.1906488Z Cache mode: read 2026-10-27T19:14:52.1907235Z Prepare workflow directory 2026-10-27T19:14:52.2256679Z Prepare all required actions 2026-10-27T19:14:52.2307208Z Getting action download info 2026-10-27T19:14:52.5799246Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd) 2026-10-27T19:14:52.9529716Z Complete job name: Remove preview download 2026-10-27T19:14:53.0318856Z ##[group]Run set -euo pipefail 2026-10-27T19:14:53.0319563Z set -euo pipefail 2026-10-27T19:14:53.0320065Z  2026-10-27T19:14:53.0320509Z tag="desktop-preview" 2026-10-27T19:14:53.0321013Z  2026-10-27T19:14:53.0321595Z # A stale cleanup must not delete a download that became valid 2026-10-27T19:14:53.0322835Z # again. If the PR is open and labeled once more, the next publish 2026-10-27T19:14:53.0323659Z # owns this PR's assets and replaces them itself. 2026-10-27T19:14:53.0324429Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \ 2026-10-27T19:14:53.0325151Z  --json state,labels \ 2026-10-27T19:14:53.0326027Z  --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then 2026-10-27T19:14:53.0327041Z  echo "PR is open and labeled again. Skipping cleanup." 2026-10-27T19:14:53.0327803Z  echo "removed=false" >> "$GITHUB_OUTPUT" 2026-10-27T19:14:53.0328391Z  exit 0 2026-10-27T19:14:53.0328826Z fi 2026-10-27T19:14:53.0329228Z  2026-10-27T19:14:53.0329688Z echo "removed=true" >> "$GITHUB_OUTPUT" 2026-10-27T19:14:53.0330262Z  2026-10-27T19:14:53.0330881Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then 2026-10-27T19:14:53.0331751Z  echo "No preview release exists. Nothing to clean up." 2026-10-27T19:14:53.0333074Z  exit 0 2026-10-27T19:14:53.0333538Z fi 2026-10-27T19:14:53.0333959Z  2026-10-27T19:14:53.0334689Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \ 2026-10-27T19:14:53.0335636Z  | { grep -F -- "-pr.${PR_NUMBER}." || true; } \ 2026-10-27T19:14:53.0336298Z  | while read -r asset; do 2026-10-27T19:14:53.0337110Z  gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \ 2026-10-27T19:14:53.0338066Z  || echo "Asset $asset was already removed by a concurrent run." 2026-10-27T19:14:53.0339102Z  done 2026-10-27T19:14:53.0602767Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2026-10-27T19:14:53.0604168Z env: 2026-10-27T19:14:53.0611102Z GH_TOKEN: *** 2026-10-27T19:14:53.0611939Z PR_NUMBER: 3 2026-10-27T19:14:53.0612684Z ##[endgroup] 2026-10-27T19:14:55.7864406Z No preview release exists. Nothing to clean up. 2026-10-27T19:14:55.8108162Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd 2026-10-27T19:14:55.8109142Z with: 2026-10-27T19:14:55.8114424Z 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-27T19:14:55.8124000Z github-token: *** 2026-10-27T19:14:55.8124541Z debug: false 2026-10-27T19:14:55.8125097Z user-agent: actions/github-script 2026-10-27T19:14:55.8125738Z result-encoding: json 2026-10-27T19:14:55.8126264Z retries: 0 2026-10-27T19:14:55.8126805Z retry-exempt-status-codes: 400,401,403,404,422 2026-10-27T19:14:55.8127490Z ##[endgroup] 2026-10-27T19:14:56.4118687Z Cleaning up orphan processes