Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolalunghi-xlnx opened this issue Nov 28, 2023 · 1 comment
Open

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

nicolalunghi-xlnx opened this issue Nov 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@nicolalunghi-xlnx
Copy link

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 nicolalunghi-xlnx added the bug Something isn't working label Nov 28, 2023
@gmseb
Copy link

gmseb commented Mar 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants