File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1818 terraform_modules_changed : ${{ steps.filter-terraform-modules.outputs.changed }}
1919 terraform_modules_files : ${{ steps.filter-terraform-modules.outputs.files }}
2020 terraform_modules_dirs : ${{ steps.filter-terraform-modules.outputs.dirs }}
21+ yaml_changed : ${{ steps.filter-yaml.outputs.changed }}
22+ yaml_files : ${{ steps.filter-yaml.outputs.files }}
2123
2224 steps :
2325 - name : Checkout
@@ -33,15 +35,24 @@ jobs:
3335 filters : |
3436 modules:
3537 - 'modules/**'
38+ yaml:
39+ - '**/*.yaml'
40+ - '**/*.yml'
3641
37- - name : Filter changed files to outputs
42+ - name : Filter changed Terraform Modules files to outputs
3843 id : filter-terraform-modules
3944 run : |
4045 dirs=$(echo '${{ steps.changed-files.outputs.modules_files }}' | jq '[.[] | match("modules/[^/]+").string] | unique')
4146 echo ::set-output name=changed::${{ steps.changed-files.outputs.modules }}
4247 echo ::set-output name=files::${{ steps.changed-files.outputs.modules_files }}
4348 echo ::set-output name=dirs::$dirs
4449
50+ - name : Filter changed YAML files to outputs
51+ id : filter-yaml
52+ run : |
53+ echo ::set-output name=changed::${{ steps.changed-files.outputs.yaml }}
54+ echo ::set-output name=files::${{ steps.changed-files.outputs.yaml_files }}
55+
4556
4657 terraform :
4758 needs :
7586
7687
7788 yaml :
89+ needs :
90+ - changed
91+ if : ${{ needs.changed.outputs.yaml_changed != 'false' }}
7892 runs-on : ubuntu-latest
7993
8094 steps :
You can’t perform that action at this time.
0 commit comments