question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exclude option - syntax is wrong in the readme

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
maximilianschmidtcommented, Jun 28, 2021

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]"

10reactions
SamKirklandcommented, Oct 11, 2021

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)

        exclude: |
          **/.git*
          **/.git*/**
          **/node_modules/**
          fileToExclude.txt

Thoughts? I’d like to drop support for [] and - with this change.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found