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

This commit is contained in:
Greg Brimble 2023-01-27 02:33:37 +00:00 committed by GitHub
commit 22d9e5e143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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