Fix unexpected delete fail

This commit is contained in:
marocchino 2021-01-22 02:29:12 +09:00
parent 17dbcbf6a4
commit acc9cee2ce
No known key found for this signature in database
GPG key ID: AFF521DBDB122570
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ async function run() {
const octokit = github.getOctokit(githubToken);
const previous = await findPreviousComment(octokit, repo, number, header);
if (!message && !path) {
if (!deleteOldComment && !message && !path) {
throw { message: 'Either message or path input is required' };
}