Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive directions are self-contradictory #29

Open
dmrickey opened this issue Jul 18, 2023 · 0 comments
Open

Recursive directions are self-contradictory #29

dmrickey opened this issue Jul 18, 2023 · 0 comments

Comments

@dmrickey
Copy link

dmrickey commented Jul 18, 2023

If for example, you do the following:

- uses: vimtor/action-zip@v1
  with:
    files: dist/ manifest.json
    recursive: false
    dest: result.zip

All the files inside the dist folder will be added at the root of the zip along with manifest.json. By contrast, if recursive: true (by default), the folder dist is included.

Also if you want a nested file at the root, recursive: false is your guy.

Right after the example it says All the files inside the dist folder will be added at the root of the zip along with manifest.json. if recursive: false is specified. This is the behavior I observed when I did not specify recursive at all. The following says by default, the dist folder will be included.

The behavior I observed without specifying recursive was that all of the folders had their contents dumped into the root of the archive. I had to specifically declare recursive: false for the folders to be included as is.

Specifically the line directly after the example seems opposite of the line at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant