|
|
@ -22157,7 +22157,7 @@ try {
|
|
|
|
throw new Error("Unable to find pages project");
|
|
|
|
throw new Error("Unable to find pages project");
|
|
|
|
const githubBranch = import_process.env.GITHUB_REF_NAME;
|
|
|
|
const githubBranch = import_process.env.GITHUB_REF_NAME;
|
|
|
|
const productionEnvironment = githubBranch === project.production_branch;
|
|
|
|
const productionEnvironment = githubBranch === project.production_branch;
|
|
|
|
const environmentName = productionEnvironment ? "Production" : `Preview: (${githubBranch})`;
|
|
|
|
const environmentName = `${projectName} (${productionEnvironment ? "Production" : "Preview"})`;
|
|
|
|
let gitHubDeployment;
|
|
|
|
let gitHubDeployment;
|
|
|
|
if (gitHubToken && gitHubToken.length) {
|
|
|
|
if (gitHubToken && gitHubToken.length) {
|
|
|
|
const octokit = (0, import_github.getOctokit)(gitHubToken);
|
|
|
|
const octokit = (0, import_github.getOctokit)(gitHubToken);
|
|
|
|