GitHub check
Whole log, 6 KB
2026-10-25T00:49:49.2900436Z Current runner version: '2.338.0'
2026-10-25T00:49:49.2922023Z ##[group]Runner Image Provisioner
2026-10-25T00:49:49.2922766Z Hosted Compute Agent
2026-10-25T00:49:49.2923257Z Version: 20261021.618
2026-10-25T00:49:49.2923794Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
2026-10-25T00:49:49.2924424Z Build Date: 2026-10-21T00:45:21Z
2026-10-25T00:49:49.2925256Z Worker ID: {ebf609d3-9ac5-4958-9752-4dac853b502e}
2026-10-25T00:49:49.2925818Z Region: westus
2026-10-25T00:49:49.2926322Z Cloud: Azure
2026-10-25T00:49:49.2926823Z ##[endgroup]
2026-10-25T00:49:49.2928025Z ##[group]Operating System
2026-10-25T00:49:49.2928526Z Ubuntu
2026-10-25T00:49:49.2928942Z 24.04.5
2026-10-25T00:49:49.2929451Z LTS
2026-10-25T00:49:49.2929908Z ##[endgroup]
2026-10-25T00:49:49.2930378Z ##[group]Runner Image
2026-10-25T00:49:49.2930876Z Image: ubuntu-24.04
2026-10-25T00:49:49.2931337Z Version: 20261012.334.1
2026-10-25T00:49:49.2932418Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
2026-10-25T00:49:49.2933632Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
2026-10-25T00:49:49.2934417Z ##[endgroup]
2026-10-25T00:49:49.2935765Z ##[group]GITHUB_TOKEN Permissions
2026-10-25T00:49:49.2937340Z Contents: write
2026-10-25T00:49:49.2937824Z Metadata: read
2026-10-25T00:49:49.2938389Z PullRequests: write
2026-10-25T00:49:49.2938856Z ##[endgroup]
2026-10-25T00:49:49.2940628Z Secret source: Actions
2026-10-25T00:49:49.2941402Z Cache mode: read
2026-10-25T00:49:49.2942031Z Prepare workflow directory
2026-10-25T00:49:49.3210239Z Prepare all required actions
2026-10-25T00:49:49.3250016Z Getting action download info
2026-10-25T00:49:49.6612804Z Download action repository 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
2026-10-25T00:49:50.1476953Z Complete job name: Remove preview download
2026-10-25T00:49:50.2129277Z ##[group]Run set -euo pipefail
2026-10-25T00:49:50.2129866Z set -euo pipefail
2026-10-25T00:49:50.2130271Z
2026-10-25T00:49:50.2130629Z tag="desktop-preview"
2026-10-25T00:49:50.2131028Z
2026-10-25T00:49:50.2131498Z # A stale cleanup must not delete a download that became valid
2026-10-25T00:49:50.2132200Z # again. If the PR is open and labeled once more, the next publish
2026-10-25T00:49:50.2132830Z # owns this PR's assets and replaces them itself.
2026-10-25T00:49:50.2133424Z if [[ "$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" \
2026-10-25T00:49:50.2133976Z --json state,labels \
2026-10-25T00:49:50.2134665Z --jq '.state + " " + (.labels | map(.name) | contains(["preview:mac"]) | tostring)')" == "OPEN true" ]]; then
2026-10-25T00:49:50.2135888Z echo "PR is open and labeled again. Skipping cleanup."
2026-10-25T00:49:50.2136503Z echo "removed=false" >> "$GITHUB_OUTPUT"
2026-10-25T00:49:50.2136980Z exit 0
2026-10-25T00:49:50.2137353Z fi
2026-10-25T00:49:50.2137678Z
2026-10-25T00:49:50.2138046Z echo "removed=true" >> "$GITHUB_OUTPUT"
2026-10-25T00:49:50.2138499Z
2026-10-25T00:49:50.2138986Z if ! gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
2026-10-25T00:49:50.2139658Z echo "No preview release exists. Nothing to clean up."
2026-10-25T00:49:50.2140164Z exit 0
2026-10-25T00:49:50.2140505Z fi
2026-10-25T00:49:50.2140829Z
2026-10-25T00:49:50.2141381Z gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets[].name' \
2026-10-25T00:49:50.2142085Z | { grep -F -- "-pr.${PR_NUMBER}." || true; } \
2026-10-25T00:49:50.2142591Z | while read -r asset; do
2026-10-25T00:49:50.2143200Z gh release delete-asset "$tag" "$asset" --repo "$GITHUB_REPOSITORY" --yes \
2026-10-25T00:49:50.2143933Z || echo "Asset $asset was already removed by a concurrent run."
2026-10-25T00:49:50.2144818Z done
2026-10-25T00:49:50.2491483Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2026-10-25T00:49:50.2492692Z env:
2026-10-25T00:49:50.2497400Z GH_TOKEN: ***
2026-10-25T00:49:50.2497950Z PR_NUMBER: 24356
2026-10-25T00:49:50.2498315Z ##[endgroup]
2026-10-25T00:49:51.7651920Z ##[group]Run actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
2026-10-25T00:49:51.7652696Z with:
2026-10-25T00:49:51.7656895Z script: const marker = "<!-- desktop-macos-preview -->";
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-25T00:49:51.7664636Z github-token: ***
2026-10-25T00:49:51.7665175Z debug: false
2026-10-25T00:49:51.7665615Z user-agent: actions/github-script
2026-10-25T00:49:51.7666115Z result-encoding: json
2026-10-25T00:49:51.7666530Z retries: 0
2026-10-25T00:49:51.7666942Z retry-exempt-status-codes: 400,401,403,404,422
2026-10-25T00:49:51.7667483Z ##[endgroup]
2026-10-25T00:49:52.2328038Z Cleaning up orphan processes