Skip to content
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

Can´t exclude multiple folders. #60

Open
josesoaresif opened this issue Mar 28, 2022 · 1 comment
Open

Can´t exclude multiple folders. #60

josesoaresif opened this issue Mar 28, 2022 · 1 comment

Comments

@josesoaresif
Copy link

josesoaresif commented Mar 28, 2022

Can't seem to set multiple paths as exceptions.
This may just be the expected behaviour of the action still, I figured I'd place an issue just in case I'm missing something.
The docs implied that we could do so and I think the glob pattern is correct for excluding everything under controller and view (these are not root folders).

I am using this config:

on:
  push:
    branches: [ production ]
jobs:
  copy:
    runs-on: ubuntu-latest
    steps:
    - name: Copycat
      uses: andstor/copycat-action@v3
      with:
        personal_token: ${{ secrets.GH_TOKEN }}
        src_path: /admin
        dst_path: /opver3/
        dst_owner: josesoaresif
        dst_repo_name: test01
        dst_branch: main
        src_branch: production
        commit_message: "tests: test commit message"
        username: josesoaresif
        email: [email protected]
        clean: true
        exclude: "**/{controller,view}/**/*"

works great if you change the exclude to a single folder:
exclude: "/controller//*"

@josesoaresif
Copy link
Author

Oh I found your closed issue #20
And now, I solved my issue accordingly.
If you can, could you point out a resource that explains the glob rules that it follows?
I ask that because I believe the above is still valid glob expression, but I could be wrong.
Thanks for the great tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant