upload-artifact icon indicating copy to clipboard operation
upload-artifact copied to clipboard

[bug] if-no-files-found: error doesn't check all files

Open nicolalunghi-xlnx opened this issue 1 year ago • 1 comments

What happened?

if I use the action like this:

 - uses: actions/upload-artifact@v3
        with:
          if-no-files-found: error
          path: |
            first_dir/
            second_dir/

no error is emitted if second_dir doesn't exist

What did you expect to happen?

to get an error if any of the files/dir is missing

How can we reproduce it?

 - run: mkdir first_dir && touch first_dir/file1.txt
 - uses: actions/upload-artifact@v3
      with:
        if-no-files-found: error
        path: |
          first_dir/
          second_dir/

Anything else we need to know?

No response

What version of the action are you using?

v3.1.3

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

no

nicolalunghi-xlnx avatar Nov 28 '23 14:11 nicolalunghi-xlnx

Maybe it needs a new flag if-not-all-files-found for this case. Before we have that, I agree it's a bug.

gmseb avatar Mar 28 '24 20:03 gmseb