diff --git a/action.yml b/action.yml index f62f7f5f..6abeeeba 100644 --- a/action.yml +++ b/action.yml @@ -23,6 +23,9 @@ inputs: delete: description: "delete the previously created comment" required: false + repo: + description: "Limited use on github enterprise. Note that When you trying changing a repo, be aware that GITHUB_TOKEN should also use that repo's. If not set, the current repo is used by default." + required: false GITHUB_TOKEN: description: "set secrets.GITHUB_TOKEN here" required: true diff --git a/src/main.ts b/src/main.ts index 6871a833..549e4a50 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,7 +13,7 @@ async function run() { } try { - const repo = github.context.repo; + const repo = core.getInput("repo", { required: false }) || github.context.repo; const message = core.getInput("message", { required: false }); const path = core.getInput("path", { required: false }); const header = core.getInput("header", { required: false }) || "";