File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,31 @@ jobs:
29
29
with :
30
30
script : |
31
31
import os
32
+ import json
33
+
32
34
for folder in os.listdir('src'):
33
- print(f"{folder}:")
34
- print(f" - '**/{folder}/**'")
35
- print(f" - '.github/workflows/test.yaml'")
35
+ config = os.path.join('src', folder, 'devcontainer-feature.json')
36
+ if not os.path.isfile(config):
37
+ continue
38
+
39
+ with open(config, 'r') as f:
40
+ data = json.load(f)
41
+ if data.get('deprecated') is True:
42
+ print(f"Skipping deprecated feature: {folder}")
43
+ continue
44
+
45
+ with open('.github/tmp-paths-filter.yml', 'a') as f:
46
+ f.write(f"{folder}:\n")
47
+ f.write(f" - '**/{folder}/**'\n")
48
+ f.write(f" - '.github/workflows/test.yaml'\n")
49
+
50
+ - name : Print paths filter
51
+ run : cat .github/tmp-paths-filter.yml
36
52
37
- - name : Paths Filter
38
- uses : dorny/paths-filter@v3
53
+ - uses : dorny/paths-filter@v3
39
54
id : filter
40
55
with :
41
- filters : |
42
- ${{ steps.generate-changes.outputs.stdout }}
56
+ filters : .github/tmp-paths-filter.yml
43
57
44
58
test-autogenerated :
45
59
needs : detect-changes
You can’t perform that action at this time.
0 commit comments