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

[QUESTION] Files_ignore scope #2302

Open
tifennlegoff opened this issue Sep 30, 2024 · 1 comment
Open

[QUESTION] Files_ignore scope #2302

tifennlegoff opened this issue Sep 30, 2024 · 1 comment

Comments

@tifennlegoff
Copy link

tifennlegoff commented Sep 30, 2024

Hi, I just have a question about settings for files_ignore, currently we're using the following configuration and the files_ignore looks to be ignored.

        id: changed-files
        uses: tj-actions/changed-files@v41.0.0
        with:
          dir_names: true
          files_yaml: |
            terraform:
              - '**/*.tf'
              - '**/*.jsonnet'
              - '**/*.libsonnet'
            jsonnet:
              - '**/*.jsonnet'
              - '**/*.libsonnet'
          files_ignore: |
              .github/**
              modules/**
              **/*module*/**

We use this output ${{ steps.changed-files.outputs.terraform_all_changed_files }} for another job and we see with the debug that there is a folder who should be ignored.

##[debug]Set output terraform_all_changed_and_modified_files = global/dashboards/staging global/dashboards/modules

There is a way to have files_ignore in this configuration? Actually I tried in this way but I still have the same behavior.

      - name: Changed Files
        id: changed-files
        uses: tj-actions/changed-files@v45.0.0
        with:
          dir_names: true
          files_yaml: |
            terraform:
              - '**/*.tf'
              - '**/*.jsonnet'
              - '**/*.libsonnet'
            jsonnet:
              - '**/*.jsonnet'
              - '**/*.libsonnet'
          files_ignore_yaml: |
            terraform:
              - '.github/**'
              - 'modules/**'
              - '**/*module*/**'
            jsonnet:
              - '.github/**'
              - 'modules/**'
              - '**/*module*/**'

Thanks

@tj-actions-bot
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

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

2 participants