From c9ca4a1b297b44fd0c5083206ad5bd8cba842224 Mon Sep 17 00:00:00 2001 From: Esteban Martinena Guerrero Date: Sat, 18 Mar 2023 08:47:28 +0100 Subject: [PATCH] Wran about empty dirs. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0da14ce..b926f88 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ If multiple paths are provided as input, the least common ancestor of all the se Relative and absolute file paths are both allowed. Relative paths are rooted against the current working directory. Paths that begin with a wildcard character should be quoted to avoid being interpreted as YAML aliases. +> **_Warning:_** If any directory contains no files (is empty), that directory will not be added to the final artifact. + The [@actions/artifact](https://github.com/actions/toolkit/tree/main/packages/artifact) package is used internally to handle most of the logic around uploading an artifact. There is extra documentation around upload limitations and behavior in the toolkit repo that is worth checking out. ### Customization if no files are found