From dcaaa512d41ca4d499e99e10733e173103c92c2e Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Tue, 20 Dec 2022 22:04:20 +0000 Subject: [PATCH] Cleanup --- index.js | 4 +--- src/index.ts | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 5fd307a..4932d2d 100644 --- a/index.js +++ b/index.js @@ -22129,11 +22129,9 @@ try { }); }; const createJobSummary = async ({ - project, deployment, aliasUrl }) => { - console.log(deployment.stages); const deployStage = deployment.stages.find((stage) => stage.name === "deploy"); let status = "\u26A1\uFE0F Deployment in progress..."; if (deployStage?.status === "success") { @@ -22173,7 +22171,7 @@ try { alias = pagesDeployment.aliases[0]; } (0, import_core.setOutput)("alias", alias); - await createJobSummary({ project, deployment: pagesDeployment, aliasUrl: alias }); + await createJobSummary({ deployment: pagesDeployment, aliasUrl: alias }); if (gitHubDeployment) { const octokit = (0, import_github.getOctokit)(gitHubToken); await createGitHubDeploymentStatus({ diff --git a/src/index.ts b/src/index.ts index 3531ce0..997dfe1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -94,19 +94,16 @@ try { const createJobSummary = async ( { - project, deployment, aliasUrl, }: { - project: Project; deployment: Deployment; aliasUrl: string; } ) => { - console.log(deployment.stages); const deployStage = deployment.stages.find((stage) => stage.name === 'deploy'); - + let status = '⚡️ Deployment in progress...'; if (deployStage?.status === 'success') { status = '✅ Deploy successful!'; @@ -154,7 +151,7 @@ try { } setOutput("alias", alias); - await createJobSummary({ project, deployment: pagesDeployment, aliasUrl: alias }); + await createJobSummary({ deployment: pagesDeployment, aliasUrl: alias }); if (gitHubDeployment) { const octokit = getOctokit(gitHubToken);