Skip to content

Commit

Permalink
Run npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
178inaba committed Oct 1, 2024
1 parent 04469d4 commit 217556c
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions bin/action.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -87331,26 +87331,6 @@ exports.getOctokit = getOctokit;

});

// create a check and return a function that updates (completes) it
async function createCheck(github, context) {
var _context$payload$pull;
const check = await github.rest.checks.create({
...context.repo,
name: "Deploy Preview",
head_sha: (_context$payload$pull = context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha,
status: "in_progress"
});
return async details => {
await github.rest.checks.update({
...context.repo,
check_run_id: check.data.id,
completed_at: new Date().toISOString(),
status: "completed",
...details
});
};
}

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
Expand Down Expand Up @@ -93184,10 +93164,6 @@ const firebaseToolsVersion = core.getInput("firebaseToolsVersion");
const disableComment = core.getInput("disableComment");
async function run() {
const isPullRequest = !!github.context.payload.pull_request;
let finish = details => console.log(details);
if (token && isPullRequest) {
finish = await createCheck(octokit, github.context);
}
try {
core.startGroup("Verifying firebase.json exists");
if (entryPoint !== ".") {
Expand Down Expand Up @@ -93219,16 +93195,6 @@ async function run() {
throw Error(deployment.error);
}
core.endGroup();
const hostname = target ? `${target}.web.app` : `${projectId}.web.app`;
const url = `https://${hostname}/`;
await finish({
details_url: url,
conclusion: "success",
output: {
title: `Production deploy succeeded`,
summary: `[${hostname}](${url})`
}
});
return;
}
const channelId = getChannelId(configuredChannelId, github.context);
Expand Down Expand Up @@ -93260,23 +93226,8 @@ async function run() {
const commitId = (_context$payload$pull = github.context.payload.pull_request) == null ? void 0 : _context$payload$pull.head.sha.substring(0, 7);
await postChannelSuccessComment(octokit, github.context, deployment, commitId);
}
await finish({
details_url: urls[0],
conclusion: "success",
output: {
title: `Deploy preview succeeded`,
summary: getURLsMarkdownFromChannelDeployResult(deployment)
}
});
} catch (e) {
core.setFailed(e.message);
await finish({
conclusion: "failure",
output: {
title: "Deploy preview failed",
summary: `Error: ${e.message}`
}
});
}
}
run();

0 comments on commit 217556c

Please sign in to comment.