Merge pull request #55 from nisheretail/better-environment-names

pull/56/head
Greg Brimble 2 years ago committed by GitHub
commit 22d9e5e143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

@ -126,7 +126,7 @@ try {
const githubBranch = env.GITHUB_REF_NAME; const githubBranch = 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: Awaited<ReturnType<typeof createGitHubDeployment>>; let gitHubDeployment: Awaited<ReturnType<typeof createGitHubDeployment>>;

Loading…
Cancel
Save