From 6ffed59e5547e6594ba7b3e49883af40801fa1df Mon Sep 17 00:00:00 2001 From: Doug Tangren Date: Tue, 12 Mar 2024 12:22:52 -0400 Subject: [PATCH] followup to #417 (#425) * followup to #417 * update changelog --- CHANGELOG.md | 4 +++- src/main.ts | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26178eda..20ea9d88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ -## 2.0.4 (unreleased) +## 2.0.4 + +- Minor follow up to [#417](https://github.com/softprops/action-gh-release/pull/417). [#425](https://github.com/softprops/action-gh-release/pull/425) ## 2.0.3 diff --git a/src/main.ts b/src/main.ts index be556690..27400b3f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -67,7 +67,11 @@ async function run() { if (config.input_files && config.input_files.length > 0) { const files = paths(config.input_files); if (files.length == 0) { - throw new Error(`⚠️ ${config.input_files} not include valid file.`); + if (config.input_fail_on_unmatched_files) { + throw new Error(`⚠️ ${config.input_files} not include valid file.`); + } else { + console.warn(`🤔 ${config.input_files} not include valid file.`); + } } const currentAssets = rel.assets; const assets = await Promise.all(