I generate a couple of files in my jobs that I upload as an artifact. The files follow the name pattern of .coverage.<random>. I upload them with the following step:
- name: Store partial coverage data
uses: actions/upload-artifact@v3
with:
name: coverage-data
path: ".coverage.*"
if-no-files-found: error
The step's path is correct as the logs says:
With the provided path, there will be 3 files uploaded
In a later job I download the artifacts with the following step:
- name: Download partial coverage data
uses: actions/download-artifact@v3
The step logs tell me that its downloading a number of files:
Total number of files that will be downloaded: 27
However, running ls -lR shows that the artifact folder doesn't contain any files:
.:
total 4
drwxr-xr-x 2 runner docker 4096 Oct 25 12:17 coverage-data
./coverage-data:
total 0
The artifact zip from the workflow's summary page is also empty although it states a size of a couple of megabytes.
What happened?
I generate a couple of files in my jobs that I upload as an artifact. The files follow the name pattern of
.coverage.<random>
. I upload them with the following step:The step's
path
is correct as the logs says:In a later job I download the artifacts with the following step:
The step logs tell me that its downloading a number of files:
However, running
ls -lR
shows that the artifact folder doesn't contain any files:The artifact zip from the workflow's summary page is also empty although it states a size of a couple of megabytes.
You can see all of the described steps in this workflow run: https://github.com/boxine/bx_django_utils/actions/runs/6640185599
What did you expect to happen?
Dotfiles are included in the artifact zip and are correctly uploaded by the upload-artifact action.
How can we reproduce it?
Create an empty repo with a couple of dummy files, e.g.
.foo1
,.foo2
, etc. Then upload them withpath: ".foo*"
.Anything else we need to know?
No response
What version of the action are you using?
v3
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response