-
Notifications
You must be signed in to change notification settings - Fork 386
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
exclude option - syntax is wrong in the readme #202
Comments
Hi! I was having the same issue. I removed the '-' preceding each item and it worked! Regards. |
when removing the /e |
@SamKirkland Seems to be the same issue like here: #200 |
@maximilianschmidt this works for me; you are a star. I'll leave the issue open as the bug as described is still present but I'm gonna unfollow. |
@maximilianschmidt Thanks for the solution! There are two convenient ways to write it, both syntax handled properly by the action.
Without square brackets - note the separator is
GitHub actions API does not handle yaml lists, only strings, thus the need to pass a string which is then split into individual globs. FTP-Deploy-Action/src/parse.ts Line 102 in 65c6a8f
FTP-Deploy-Action/src/parse.ts Line 106 in 65c6a8f
README.md could be updated to reflect one of these syntaxes. |
I'm pretty sure git changed how those were coming back, it worked in all my test cases until one day... it stopped. Anyway, it looks like git added a new Lot of other actions have started using this format for lists of params (first pipe is needed to indicate its multiline) exclude: |
**/.git*
**/.git*/**
**/node_modules/**
fileToExclude.txt Thoughts? I'd like to drop support for |
Using SamKirkland/FTP-Deploy-Action#202 (comment) in an attempt to fix the problem.
I have a beta branch deployed that uses the new format. To use the beta branch you can use the following: Any feedback/testing is welcome. |
What is the latest way of working code in the master?
Same for
I tested
It is not excluding the files either. Btw. in the first two tries, I tried both, |
I changed the format in v4.2.0 Please upgrade |
What is the correct syntax to exclude all files in a folder? I'm using
...
None of the combinations work for me. I have also tried with:
|
Why was exclude removed 4.3.2 I have 1000s of images in a img folder |
Bug Description
"Sequence is not expected" when I add an "exclude" key with multiple entries
My Action Config
My Action Log
The text was updated successfully, but these errors were encountered: