GithubHelp home page GithubHelp logo

Comments (5)

craigh avatar craigh commented on August 14, 2024

tried this also
src_filter: '!(/test/*|/dev/*)'
but it didn't work either

from copycat-action.

andstor avatar andstor commented on August 14, 2024

Hello Craig,
the current filtering mechanism only applies to file basenames. This has to do with some limitations of the Linux Find program. Your filtering wishes is therefore currently not possible to achieve.

However, I've wanted to implement a filtering mechanism that accepts general globbing patterns against file paths. This should provide what you seek. I have started working on such functionality and should have it ready shortly.

from copycat-action.

craigh avatar craigh commented on August 14, 2024

terrific! thank you! I look forward to it :-)

from copycat-action.

andstor avatar andstor commented on August 14, 2024

Hi,
i have now released a new version of Copycat, v3. Note that it is a major version update (v3.0.0) as it is not backwards compatible (mainly renamed input variables). See the CHANGELOG.md.

You should now be able to filter out folders matching test and dev by setting the new exclude input variable to the glob pattern *+(/test/|/dev/)*.

Note that src_filterhas been renamed to file_filter.

I also noticed that you are using glob patterns in the src_path in your copy-to-dist.yml file. The src_path should be set to a valid path, meaning that it should not contain glob patterns. For example /foo/bar/* should be /foo/bar/. If you want to do more complex glob pattern matching under the src_path, you should use the new filter input variable.

from copycat-action.

craigh avatar craigh commented on August 14, 2024

Hi There. this is awesome! thank you so much! πŸ‘ πŸ‘ πŸ‘ πŸ‘

here is the current version which I think is working correctly. Let me know if you see anything problematic!

from copycat-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.