Skip to content

Commit a8a5ecf

Browse files
authored
Merge 0e286bc into d4b7b9e
2 parents d4b7b9e + 0e286bc commit a8a5ecf

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/validate_and_fix_markdown.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
pull_request:
55
branches:
66
- main
7-
push:
8-
branches:
9-
- main
107

118
permissions:
129
contents: write

.github/workflows/validate_and_fix_notebook.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ on:
44
pull_request:
55
branches:
66
- main
7-
push:
8-
branches:
9-
- main
10-
7+
118
permissions:
129
contents: write
1310

@@ -35,12 +32,12 @@ jobs:
3532
python -c "
3633
import nbformat
3734
import glob
38-
for file in glob.glob('**/*.ypyb', recursive=True):
35+
for file in glob.glob('**/*.ipynb', recursive=True):
3936
with open(file, 'r') as f:
4037
nb = nbformat.read(f, as_version=4)
4138
nbformat.validate(nb)
42-
if 'application/vnd.beylor-adapt+notebook' not in nb.metadata:
43-
nb.metadata['application/vnd.beylor-adapt+notebook'] = {'version': '1.0'}
39+
if 'application/vnd.jupyter.widget-state+json' not in nb.metadata:
40+
nb.metadata['application/vnd.jupyter.widget-state+json'] = {'version': '1.0'}
4441
with open(file, 'w') as f:
4542
nbformat.write(nb, f)
4643
"

0 commit comments

Comments
 (0)