Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,31 @@ jobs:
with:
script: |
import os
import json

for folder in os.listdir('src'):
print(f"{folder}:")
print(f" - '**/{folder}/**'")
print(f" - '.github/workflows/test.yaml'")
config = os.path.join('src', folder, 'devcontainer-feature.json')
if not os.path.isfile(config):
continue

with open(config, 'r') as f:
data = json.load(f)
if data.get('deprecated') is True:
print(f"Skipping deprecated feature: {folder}")
continue

with open('.github/tmp-paths-filter.yml', 'a') as f:
f.write(f"{folder}:\n")
f.write(f" - '**/{folder}/**'\n")
f.write(f" - '.github/workflows/test.yaml'\n")

- name: Print paths filter
run: cat .github/tmp-paths-filter.yml

- name: Paths Filter
uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
${{ steps.generate-changes.outputs.stdout }}
filters: .github/tmp-paths-filter.yml

test-autogenerated:
needs: detect-changes
Expand Down