Skip to content

Commit 1dbfccb

Browse files
committed
fix paths filter printing
1 parent 6ce06bc commit 1dbfccb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
script: |
3131
import os
3232
import json
33-
33+
3434
for folder in os.listdir('src'):
3535
config = os.path.join('src', folder, 'devcontainer-feature.json')
3636
if not os.path.isfile(config):
@@ -42,16 +42,18 @@ jobs:
4242
print(f"Skipping deprecated feature: {folder}")
4343
continue
4444
45-
print(f"{folder}:")
46-
print(f" - '**/{folder}/**'")
47-
print(f" - '.github/workflows/test.yaml'")
45+
with open('.github/tmp-paths-filter.yml', 'a') as f:
46+
f.write(f"{folder}:")
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
4852

49-
- name: Paths Filter
50-
uses: dorny/paths-filter@v3
53+
- uses: dorny/paths-filter@v3
5154
id: filter
5255
with:
53-
filters: |
54-
${{ steps.generate-changes.outputs.stdout }}
56+
filters: .github/tmp-paths-filter.yml
5557

5658
test-autogenerated:
5759
needs: detect-changes

0 commit comments

Comments
 (0)