Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/donor_generate_other_formats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: generating other formats for donor

on:
pull_request_target:
types: [opened, synchronize]
paths:
- 'linkml-schema/donor.yaml'
- 'linkml-schema/bican_biolink.yaml'
- 'linkml-schema/bican_prov.yaml'

permissions:
contents: write
pull-requests: write


jobs:
generate_from_reusable:
uses: brain-bican/models/.github/workflows/reusable-generate_other_formats.yaml@main
with:
model_name: donor
3 changes: 3 additions & 0 deletions .github/workflows/generate_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
cp erdiagram-autogen/library_generation.md docs/library_generation.md
cp erdiagram-autogen/assertion_evidence.md docs/assertion_evidence.md
cp erdiagram-autogen/bke_taxonomy.md docs/bke_taxonomy.md
cp erdiagram-autogen/donor.md docs/donor.md
gen-doc -d docs linkml-schema/library_generation.yaml
mv docs/index.md docs/index_library_generation.md
gen-doc -d docs linkml-schema/anatomical_structure.yaml
Expand All @@ -48,6 +49,8 @@ jobs:
mv docs/index.md docs/index_assertion_evidence.md
gen-doc -d docs linkml-schema/bke_taxonomy.yaml
mv docs/index.md docs/index_bke_taxonomy.md
gen-doc -d docs linkml-schema/donor.yaml
mv docs/index.md docs/index_donor.md
mv docs/index_main.md docs/index.md


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-generate_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
echo "jsonld-context generated";
linkml generate pydantic ${name}.yaml > ../models_py-autogen/${name}.py;
echo "pydantic model generated";
if [ ${name} = "library_generation" ] || [ ${name} = "genome_annotation" ] || [ ${name} = "bke_taxonomy" ] || [ ${name} = "anatomical_structure" ]; then
if [ ${name} = "library_generation" ] || [ ${name} = "genome_annotation" ] || [ ${name} = "bke_taxonomy" ] || [ ${name} = "anatomical_structure" || [ ${name} = "donor" ]]; then
echo "Fixing erdiagrams for $name";
python ../utils/fix_and_create_erdiagram.py;
else
Expand Down
Loading
Loading