diff --git a/index.js b/index.js index 01ee532..c83f3e0 100644 --- a/index.js +++ b/index.js @@ -22157,7 +22157,7 @@ try { throw new Error("Unable to find pages project"); const githubBranch = import_process.env.GITHUB_REF_NAME; const productionEnvironment = githubBranch === project.production_branch; - const environmentName = productionEnvironment ? "Production" : `Preview: (${githubBranch})`; + const environmentName = `${projectName} (${productionEnvironment ? "Production" : "Preview"})`; let gitHubDeployment; if (gitHubToken && gitHubToken.length) { const octokit = (0, import_github.getOctokit)(gitHubToken); diff --git a/src/index.ts b/src/index.ts index c871b74..ef37a3d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -126,7 +126,7 @@ try { const githubBranch = env.GITHUB_REF_NAME; const productionEnvironment = githubBranch === project.production_branch; - const environmentName = productionEnvironment ? "Production" : `Preview: (${githubBranch})`; + const environmentName = `${projectName} (${productionEnvironment ? "Production" : "Preview"})`; let gitHubDeployment: Awaited>;