pull/44/head
Daniel Walsh 3 years ago
parent ef4ec517c9
commit dcaaa512d4
No known key found for this signature in database

@ -22129,11 +22129,9 @@ try {
}); });
}; };
const createJobSummary = async ({ const createJobSummary = async ({
project,
deployment, deployment,
aliasUrl aliasUrl
}) => { }) => {
console.log(deployment.stages);
const deployStage = deployment.stages.find((stage) => stage.name === "deploy"); const deployStage = deployment.stages.find((stage) => stage.name === "deploy");
let status = "\u26A1\uFE0F Deployment in progress..."; let status = "\u26A1\uFE0F Deployment in progress...";
if (deployStage?.status === "success") { if (deployStage?.status === "success") {
@ -22173,7 +22171,7 @@ try {
alias = pagesDeployment.aliases[0]; alias = pagesDeployment.aliases[0];
} }
(0, import_core.setOutput)("alias", alias); (0, import_core.setOutput)("alias", alias);
await createJobSummary({ project, deployment: pagesDeployment, aliasUrl: alias }); await createJobSummary({ deployment: pagesDeployment, aliasUrl: alias });
if (gitHubDeployment) { if (gitHubDeployment) {
const octokit = (0, import_github.getOctokit)(gitHubToken); const octokit = (0, import_github.getOctokit)(gitHubToken);
await createGitHubDeploymentStatus({ await createGitHubDeploymentStatus({

@ -94,17 +94,14 @@ try {
const createJobSummary = async ( const createJobSummary = async (
{ {
project,
deployment, deployment,
aliasUrl, aliasUrl,
}: }:
{ {
project: Project;
deployment: Deployment; deployment: Deployment;
aliasUrl: string; aliasUrl: string;
} }
) => { ) => {
console.log(deployment.stages);
const deployStage = deployment.stages.find((stage) => stage.name === 'deploy'); const deployStage = deployment.stages.find((stage) => stage.name === 'deploy');
let status = '⚡️ Deployment in progress...'; let status = '⚡️ Deployment in progress...';
@ -154,7 +151,7 @@ try {
} }
setOutput("alias", alias); setOutput("alias", alias);
await createJobSummary({ project, deployment: pagesDeployment, aliasUrl: alias }); await createJobSummary({ deployment: pagesDeployment, aliasUrl: alias });
if (gitHubDeployment) { if (gitHubDeployment) {
const octokit = getOctokit(gitHubToken); const octokit = getOctokit(gitHubToken);

Loading…
Cancel
Save