Upload-artifact: File not found error

Created on 6 Aug 2020  路  2Comments  路  Source: actions/upload-artifact

Describe the bug
I am getting a warning with the following:

##[warning]No files were found with the provided path: $GITHUB_WORKSPACE/artifacts/Convertextract-macOS.zip. No artifacts will be uploaded.

But, as you can see in the screenshot below - there is definitely a file there. I have tried uploading the artifact as a directory, (ie changing the path to $GITHUB_WORKSPACE/artifacts/) but the problem still occurs. I've also tried zipping it as with this most recent workflow run, and leaving it un-zipped as in this workflow run.

Version

  • [ ] V1
  • [x] V2

Environment

  • [ ] self-hosted
  • [ ] Linux
  • [ ] Windows
  • [x] Mac

Screenshots
Below is a screenshot showing that the file is there, but the artifacts action does not find it.

image

Run/Repo Url
https://github.com/roedoejet/convertextract/runs/955412706?check_suite_focus=true

How to reproduce
The GitHub action is public, as is the repo.

Additional context
None. Thanks for such a great tool!

bug

Most helpful comment

Thanks to @eddieantonio, I found the relevant documentation: https://github.com/actions/upload-artifact#environment-variables-and-tilde-expansion !

All 2 comments

Thanks to @eddieantonio, I found the relevant documentation: https://github.com/actions/upload-artifact#environment-variables-and-tilde-expansion !

Same problem in Windows with a private repository. I have tried with many paths combination (absolute and relative) and nothing works.

The error
image

Workflow YAML hunk
image

UPDATE
This only occurs when using GitHub Actions context expressions in path definition. Using and explicit path (ie. path: bundle\app.zip) works fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JayFoxRox picture JayFoxRox  路  9Comments

luna-kx picture luna-kx  路  5Comments

lelegard picture lelegard  路  5Comments

Tyrrrz picture Tyrrrz  路  5Comments

emilianbold picture emilianbold  路  3Comments