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

Ignore block not working #254

Open
carjessu-trm opened this issue May 15, 2023 · 2 comments
Open

Ignore block not working #254

carjessu-trm opened this issue May 15, 2023 · 2 comments

Comments

@carjessu-trm
Copy link

When using the latest release:

jobs:
  modules:
    runs-on: ubuntu-latest
    steps:
      - uses: theappnest/terraform-monorepo-action@master
        id: modules
        with:
          mode: all
          ignore: |
            */*
            !**/bootstrap/
    outputs:
      modules: ${{ steps.modules.outputs.modules }}

We are attempting to only use folders called bootstrap. An example of the file-structure as follows:

.
├── README.md
├── bootstrap
│   └── main.tf
└── gcp
    ├── folders
    │  ├── project
    │  │  │  └── bootstrap
    │  │  │  │   └── main.tf
    │  │  │  └── not-bootstrap
    │  │  │      └── main.tf

This results in the module only finding the root level bootstrap folder. When removing the ignore block, the action does correctly find all the modules specified in our repository. Given that this project seems to use https://www.npmjs.com/package/ignore, it should simply just work. Anything we can test to make this work for our use case?

@pabloleonardo
Copy link

I'm seeing the same behavior.

@ego93
Copy link

ego93 commented Sep 25, 2024

I'm having the same issue, Do you have any word on a fix for this or anyone else tried a fix that works?

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

No branches or pull requests

3 participants