Skip to content

Commit

Permalink
test regen from actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Nov 28, 2023
1 parent d0a0115 commit 5740e5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Regenerate Biolink Model Artifacts
on:
push:
branches:
- master
- doc-refactor
repository_dispatch:
types: trigger-build-artifacts

Expand All @@ -32,21 +32,19 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y build-essential git wget curl
sudo apt-get install -y openjdk-8-jre
wget https://github.com/joelittlejohn/jsonschema2pojo/releases/download/jsonschema2pojo-1.0.2/jsonschema2pojo-1.0.2.tar.gz
tar -xvzf jsonschema2pojo-1.0.2.tar.gz
pip install poetry
- name: Generate Biolink Model artifacts
run: |
export PATH=$PATH:`pwd`/jsonschema2pojo-1.0.2/bin
make gen-project
if [ $? -eq 0 ]; then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add project/*
git commit -m "Regenerate artifacts from biolink-model.yaml"
git push
# git add project/*
# git add src/*
# git add
# git commit -m "Regenerate artifacts from biolink-model.yaml"
# git push
else
echo "'make' gen-project failed to finish successfully"
fi
2 changes: 1 addition & 1 deletion src/doc-templates/class.md.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <strong> Class: {{ gen.name(element) }} </strong> {% if element.deprecated %} <span style="color: red;"><strong> (DEPRECATED) </strong></span>{% endif %}{% if element.abstract %}<span style="color: purple;"><strong> (Abstract Class) </strong>:</span> {% endif %}
{% if element.description or element.aliases or element.multivalued or element.required or element.domain or element.range or element.inverse %}
<div class="highlight-box"> <strong>Description:</strong> <i>{{ element.description }}</i>
<div class="highlight-box">{% if element.description %}<strong>Description:</strong><i> {{ element.description }}</i><br>{% endif %}
{% if element.aliases %}<strong>Aliases:</strong> {{ element.aliases | join(', ') }}<br>{% endif -%}
{% if element.multivalued %}<strong>Multivalued:</strong> {{ element.multivalued }}<br>{% endif -%}
{% if element.required %}<strong>Required:</strong> {{ element.required }}<br>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion src/doc-templates/slot.md.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <strong> Slot: {{ gen.name(element) }} </strong> {% if element.deprecated %} <span style="color: red;"><strong> (DEPRECATED) </strong></span> {% endif %}{% if element.abstract %}<span style="color: purple;"><strong> (Abstract Slot) </strong></span> {% endif %}{% if element.multivalued %} (multivalued){% endif -%}
{% if element.description or element.aliases or element.multivalued or element.required or element.domain or element.range or element.inverse %}
<div class="highlight-box"> <strong>Description:</strong><i> {{ element.description }}</i>
<div class="highlight-box">{% if element.description %}<strong>Description:</strong><i> {{ element.description }}</i><br>{% endif %}
{% if element.aliases %} <strong>Aliases:</strong> {{ element.aliases | join(', ') }}<br>{% endif -%}
{% if element.domain %}<strong>Domain:</strong> {{ element.domain }}<br>{% endif %}
{% if element.range %}<strong>Range:</strong> {{ element.range }}<br>{% endif %}
Expand Down

0 comments on commit 5740e5d

Please sign in to comment.