Skip to content

Commit d3f9920

Browse files
committed
skip deprecated files
1 parent b0a183b commit d3f9920

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
script: |
3131
import os
3232
for folder in os.listdir('src'):
33+
config = os.path.join('src', folder, 'devcontainer-feature.json')
34+
if not os.path.isfile(config):
35+
continue
36+
37+
with open(config, 'r') as f:
38+
data = f.read()
39+
if data.get('deprecated') is True:
40+
print(f"Skipping deprecated feature: {folder}")
41+
continue
42+
3343
print(f"{folder}:")
3444
print(f" - '**/{folder}/**'")
3545
print(f" - '.github/workflows/test.yaml'")

0 commit comments

Comments
 (0)