Skip to content

Commit cf55451

Browse files
committed
ci: fix schema naming compatibility with Ruby/Jekyll
1 parent a4f3064 commit cf55451

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-schemas.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ jobs:
3838
run: cargo run --bin export_schema
3939

4040
- name: Move new schemas into ./_data
41-
run: cp ./c2pa-rs/target/schema/* ./_data/
41+
run: |
42+
# We also rename the schemas to have an underscore in the filename instead of a dot to fix
43+
# compatibility issues with Ruby/Jekyll.
44+
for path in ./c2pa-rs/target/schema/*.schema.json; do
45+
name=$(basename "$path")
46+
new=${name/.schema/_schema}
47+
cp "$path" "./_data/$new"
48+
done
4249
4350
- name: Check schemas for diff
4451
id: diffs

0 commit comments

Comments
 (0)