Skip to content

Commit 7a7e2c6

Browse files
committed
ci: fix schema naming compatibility with Ruby/Jekyll
1 parent 164e259 commit 7a7e2c6

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
@@ -47,7 +47,14 @@ jobs:
4747
run: cargo run --bin export_schema
4848

4949
- name: Move new schemas into ./json-manifest-reference/_data
50-
run: cp ./c2pa-rs/target/schema/* ./json-manifest-reference/_data/
50+
run: |
51+
# We also rename the schemas to have an underscore in the filename instead of a dot to fix
52+
# compatibility issues with Ruby/Jekyll.
53+
for path in ./c2pa-rs/target/schema/*.schema.json; do
54+
name=$(basename "$path")
55+
new=${name/.schema/_schema}
56+
cp "$path" "./json-manifest-reference/_data/$new"
57+
done
5158
5259
- name: Check schemas for diff
5360
id: diffs

0 commit comments

Comments
 (0)