Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
console.log(context);
console.dir(context, { depth: null });

let pr;
let workflowRun;
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
}

console.log(`Found PR ${pr.html_url}`);
console.log(pr);
console.dir(pr, { depth: null });

if (pr.state !== "open") {
console.log(`PR ${pr.number} is not open`);
Expand Down Expand Up @@ -106,16 +106,16 @@ jobs:
return null;
}

console.log(`Found workflow run ${workflowRun.html_url}`)
console.log(workflowRun)
console.log(`Found workflow run ${workflowRun.html_url}`);
console.dir(workflowRun, { depth: null });

try {
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: "microsoft",
repo: "TypeScript-Website",
run_id: 9164276500,
})
console.log(artifacts);
});
console.dir(artifacts, { depth: null });
if (!artifacts.data.artifacts.some(x => x.name === "site")) {
console.log("No artifact found in workflow run");
return null;
Expand Down