actions / upload-artifact

MIT License
3.03k stars 686 forks source link

[bug] Not finding files as expected on windows runner #452

Open ReeceXW opened 8 months ago

ReeceXW commented 8 months ago

What happened?

I am building a project on the windows runner. I first run a step to ensure my output folder actually has items

- name: Debug Output
  run: dir '.\Client\bin\Debug\'

I then run the upload artifacts step

- name: Produce artifacts
   uses: actions/upload-artifact@v3
   with:
     name: artifacts
     path: |
        ".Client\bin\Debug\"

The workflow returns Warning: No files were found with the provided path: ".\Client\bin\Debug\". No artifacts will be uploaded.

What did you expect to happen?

I expect it to upload all the files that were in the directory. The debug output step lists a bunch of files and folders.

How can we reproduce it?

Replace my steps with any file you have in the runner.

Anything else we need to know?

No response

What version of the action are you using?

v3.1.3

What are your runner environments?

window

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

No response