Merge pull request #235 from adyyoung/patch-1

Add ability to reference other repos
This commit is contained in:
marocchino 2021-02-25 14:50:47 +09:00 committed by GitHub
commit f19a3c97fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

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

View file

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