Skip to content

Commit 6ffed59

Browse files
authored
followup to #417 (#425)
* followup to #417 * update changelog
1 parent 1ce812a commit 6ffed59

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 2.0.4 (unreleased)
1+
## 2.0.4
2+
3+
- Minor follow up to [#417](https://github.com/softprops/action-gh-release/pull/417). [#425](https://github.com/softprops/action-gh-release/pull/425)
24

35
## 2.0.3
46

src/main.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ async function run() {
6767
if (config.input_files && config.input_files.length > 0) {
6868
const files = paths(config.input_files);
6969
if (files.length == 0) {
70-
throw new Error(`⚠️ ${config.input_files} not include valid file.`);
70+
if (config.input_fail_on_unmatched_files) {
71+
throw new Error(`⚠️ ${config.input_files} not include valid file.`);
72+
} else {
73+
console.warn(`🤔 ${config.input_files} not include valid file.`);
74+
}
7175
}
7276
const currentAssets = rel.assets;
7377
const assets = await Promise.all(

0 commit comments

Comments
 (0)