Comments (5)
tried this also
src_filter: '!(/test/*|/dev/*)'
but it didn't work either
from copycat-action.
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.
terrific! thank you! I look forward to it :-)
from copycat-action.
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_filter
has 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.
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)
- Copy files to a different branch of the same repository HOT 2
- Feature proposal: --no-clobber option for the copy command HOT 1
- Add option to copy just folder contents instead of folder AND contents HOT 2
- How to use env variables in COMMIT_MESSAGE? HOT 1
- [FEATURE] dst_repo_owner and dst_repo_name should be merged in dst_repo
- [FEATURE REQUEST] Copy from GitHub Action Workspace to the repo's branch HOT 2
- fatal: could not read Password for 'https://***@github.com': No such device or address HOT 2
- Automatically detecting the default branch name. HOT 6
- Cannot find newly created folder called build HOT 3
- Action terminates successfully despite failure HOT 2
- Deleting contents of parent folder HOT 4
- CanΒ΄t exclude multiple folders. HOT 1
- Can we use github.token or secrets.github_token instead of personal access token HOT 1
- Removes files in the Destination repository. HOT 1
- Exclude pattern not working
- Copy each `commit_message` from source folder's git history HOT 1
- Personal Access Token in a Organization Secret "PERSONAL_TOKEN"
- i want to add a param src_repo_name
- REPOSITORY IS DEAD?
- How to include LFS files?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copycat-action.