exclude option - syntax is wrong in the readme
See original GitHub issueBug Description “Sequence is not expected” when I add an “exclude” key with multiple entries
My Action Config
- name: Upload Files
uses: SamKirkland/FTP-Deploy-Action@4.1.0
with:
server-dir: (path on server)
exclude:
- "**/node_modules/**"
- .git/**
- .cache-loader/**
log-level: verbose
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
My Action Log
The workflow is not valid. .github/workflows/deploy-to-staging.yaml (Line: 31, Col: 13): A sequence was not expected
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to fix/ignore syntax error in github - Stack Overflow
I uploaded some code to github and there is nothing wrong with the code itself, but I get some kind of syntax error....
Read more >Exclude rules syntax - IBM
Exclude rules can be defined for the entire Windows file systems application. ... This syntax indicates a directory rule, but it does not...
Read more >Non-standard files/directories, Rbuildignore and inst
To exclude files from being installed, one can specify a list of exclude patterns in file .Rinstignore in the top-level source directory. These ......
Read more >Exclude files from pull request diffs | Bitbucket Cloud
Exclude files from appearing in the diff view of a pull request in Bitbucket Cloud by specifying patterns in the 'Excluded files' repository...
Read more >The Manifest Format - The Cargo Book
The exclude and include fields · * matches zero or more characters except / . For example, *.html matches any file or directory...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
when removing the
-
the error is gone but the desired folders aren’t excluded anymore, at least for me. 😕/e so i made it work by typing the exclude-sequence as an array-string like this:
exclude: "[**/.git*/**, **/node_modules/**, **/build/, .babelrc, .editorconfig, .eslintrc, .prettierrc, .stylelintrc]"
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
getMultilineInput
option.Lot of other actions have started using this format for lists of params (first pipe is needed to indicate its multiline)
Thoughts? I’d like to drop support for
[]
and-
with this change.