actions / upload-artifact

MIT License
3.25k stars 732 forks source link

[bug] many patterns usable to locate files #637

Open unional opened 2 weeks ago

unional commented 2 weeks ago

What happened?

I have the following folder structure:

packages/
  vis/
    __snapshots__/
      linux/
        __diff_output__/
        __results__/
        ...other files and folders...
      darwin/
        __diff_output__/
        __results__/
        ...other files and folders...
      ...other files and folders...

I want to include them in the artifact. The only one I found working is:

  - uses: actions/upload-artifact@v4
    with:
      path: '**/__snapshots__/linux'

All of the following fails with No files were found:

  path: |
    '**/__snapshots__/*/__diff_output__'
    '**/__snapshots__/*/__results__'
  path: |
    '**/__snapshots__/linux'
    '**/__snapshots__/darwin'
    '**/__snapshots__/win32'
  path: |
    '**/__snapshots__/linux/__diff_output__'
    '**/__snapshots__/linux/__results__'

What did you expect to happen?

Seems like multi-path is not working

How can we reproduce it?

I run into this issue in this repo: https://github.com/repobuddy/storybook-addon-vis/actions/runs/11620098467

Have not able to find time to create a minimum repro yet.

Anything else we need to know?

No response

What version of the action are you using?

v4

What are your runner environments?

linux

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

No response