diff --git a/dist/index.js b/dist/index.js index c35f6b56..3454bfd9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1414,6 +1414,7 @@ function getEffectiveRef() { async function createGithubDeployment() { if (githubDeployment && octokit) { core.debug(`Create a github deployment.`); + core.debug(`Current context :${github.context.action}`); const deployment = await octokit.repos.createDeployment({ ...context.repo, ref: getEffectiveRef(), @@ -1421,6 +1422,7 @@ async function createGithubDeployment() { }); return deployment.id; } + return null; } async function createGithubDeploymentStatus(deploymentId, state) { diff --git a/index.js b/index.js index ba0bf342..b10a3fac 100644 --- a/index.js +++ b/index.js @@ -317,6 +317,7 @@ function getEffectiveRef() { async function createGithubDeployment() { if (githubDeployment && octokit) { core.debug(`Create a github deployment.`); + core.debug(`Current context :${github.context.action}`); const deployment = await octokit.repos.createDeployment({ ...context.repo, ref: getEffectiveRef(), @@ -324,6 +325,7 @@ async function createGithubDeployment() { }); return deployment.id; } + return null; } async function createGithubDeploymentStatus(deploymentId, state) {