action-gh-release icon indicating copy to clipboard operation
action-gh-release copied to clipboard

Fail when files to release aren't found

Open twojstaryzdomu opened this issue 2 years ago • 2 comments

All too often getting 'not include valid file.'. Please enable a way to fail the release altogether when the release assets listed in files aren't found. Empty releases without assets may make little sense.

Case in point: an earlier job fails to populate its output variable that is used for release, resulting in an empty files parameter passed onto action-gh-release. It could be anything from syntax error to a faulty job.

action-gh-release needs a flag to fail when files is being set but may be empty due to a earlier problem. In that case, a release is a waste of effort.

twojstaryzdomu avatar Sep 09 '21 23:09 twojstaryzdomu

Same here

jane-rose avatar Dec 29 '21 03:12 jane-rose

action-gh-release needs a flag to fail when files is being set but may be empty due to a earlier problem.

Have you tried using the fail_on_unmatched_files input?

Alternatively, if there were an earlier problem why not fail the workflow run at that point instead of proceeding on?

softprops avatar Dec 30 '21 01:12 softprops