-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0a0115
commit 5740e5d
Showing
3 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ name: Regenerate Biolink Model Artifacts | |
on: | ||
push: | ||
branches: | ||
- master | ||
- doc-refactor | ||
repository_dispatch: | ||
types: trigger-build-artifacts | ||
|
||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters