Skip to content

Commit 600c123

Browse files
committed
find yaml
1 parent 9ccc716 commit 600c123

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def _migrate_workflows(path):
192192
('fastai/workflows/quarto-ghp@', 'fastai/workflows/quarto-ghp3@'),
193193
('fastai/workflows/nbdev-ci@', 'fastai/workflows/nbdev-ci3@'),
194194
]
195-
for f in wf_path.glob('*.yml'):
195+
for f in (*wf_path.glob('*.yml'), *wf_path.glob('*.yaml')):
196196
txt = f.read_text()
197197
for old, new in replacements: txt = txt.replace(old, new)
198198
f.write_text(txt)

nbs/api/16_migrate.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@
11781178
" ('fastai/workflows/quarto-ghp@', 'fastai/workflows/quarto-ghp3@'),\n",
11791179
" ('fastai/workflows/nbdev-ci@', 'fastai/workflows/nbdev-ci3@'),\n",
11801180
" ]\n",
1181-
" for f in wf_path.glob('*.yml'):\n",
1181+
" for f in (*wf_path.glob('*.yml'), *wf_path.glob('*.yaml')):\n",
11821182
" txt = f.read_text()\n",
11831183
" for old, new in replacements: txt = txt.replace(old, new)\n",
11841184
" f.write_text(txt)"

0 commit comments

Comments
 (0)