actions/download-artifactでpathを省略するとカレントディレクトリに中身が展開される
v1までは name と同名のディレクトリを自動的に生成してその中に展開していた
v2+は name だけが指定された場合はカレントディレクトリに中身を展開する
path を指定することで展開先のディレクトリを指定できる
When using download-artifact@v1, a directory denoted by the name of the artifact would be created if the path input was not provided. All of the contents would be downloaded to this directory.
current/working/directory/
my-artifact/
... contents of my-artifact
With v2 and v3, when an artifact is specified by the name input, there is no longer an extra directory that is created if the path input is not provided. All the contents are downloaded to the current working directory.
current/working/directory/
... contents of my-artifact
To maintain the same behavior for v2 and v3, you can set the path to the name of the artifact so an extra directory gets created.
- uses: actions/download-artifact@v2
with:
name: my-artifact
path: my-artifact