Skip to content

Commit e41367f

Browse files
committed
Rename markdown wrapper
1 parent 30c4861 commit e41367f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/schema-publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
push:
1414
branches:
1515
- main
16+
- publish-schemas #TODO: remove
1617
workflow_dispatch: {}
1718

1819
jobs:

scripts/schema-publish.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ for filename in schemas/v3*/schema.yaml ; do
1010

1111
echo "$filename $lastCommitDate"
1212
mkdir -p deploy/oas/$version/schema
13-
node scripts/schema-convert.js "$filename" $lastCommitDate > deploy/oas/$version/schema/$lastCommitDate.json
13+
node scripts/schema-convert.js "$filename" $lastCommitDate > deploy/oas/$version/schema/$lastCommitDate
14+
mv deploy/oas/$version/schema/*.md deploy/oas/$version/schema/$lastCommitDate.md
1415

1516
filenameBase=$(dirname "$filename")/schema-base.yaml
1617
if [ -f "$filenameBase" ]; then
1718
echo "$filenameBase $lastCommitDate"
1819
mkdir -p deploy/oas/$version/schema-base
19-
node scripts/schema-convert.js "$filenameBase" $lastCommitDate > deploy/oas/$version/schema-base/$lastCommitDate.json
20+
node scripts/schema-convert.js "$filenameBase" $lastCommitDate > deploy/oas/$version/schema-base/$lastCommitDate
21+
mv deploy/oas/$version/schema-base/*.md deploy/oas/$version/schema-base/$lastCommitDate.md
2022
fi
2123
done

0 commit comments

Comments
 (0)