๐Ÿ› Change ignore empty default

This commit is contained in:
marocchino 2022-11-23 08:37:50 +09:00
parent c2d61f8d44
commit c4fe677969
No known key found for this signature in database
GPG key ID: DEFF05E6B5B0FF97
4 changed files with 6 additions and 4 deletions

View file

@ -42,7 +42,7 @@ inputs:
required: false
ignore_empty:
description: "Indicates whether to ignore missing or empty messages"
default: "true"
default: "false"
required: false
follow_symbolic_links:
description: "Indicates whether to follow symbolic links for path"
@ -55,8 +55,8 @@ inputs:
description: "other repo name limited use on github enterprise. If not set, the current repo is used by default. Note that When you trying changing a repo, be aware that GITHUB_TOKEN should also use that repo's."
required: false
GITHUB_TOKEN:
description: 'The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}.'
default: '${{ github.token }}'
description: "The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}."
default: "${{ github.token }}"
required: false
runs:
using: "node16"

1
dist/index.js generated vendored
View file

@ -323,6 +323,7 @@ function run() {
try {
const body = yield (0, config_1.getBody)();
if (!body && config_1.ignoreEmpty) {
core.info("no body given: skip step by ignoreEmpty");
return;
}
if (!config_1.deleteOldComment && !config_1.hideOldComment && !body) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -34,6 +34,7 @@ async function run(): Promise<undefined> {
const body = await getBody()
if (!body && ignoreEmpty) {
core.info("no body given: skip step by ignoreEmpty")
return
}