-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.17 KB
/
updateData.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Update AOP models
on:
workflow_dispatch:
schedule:
- cron: "0 7 13 * *"
push:
paths:
- '*.groovy'
jobs:
bioschemas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install groovy
run: sudo apt install groovy
- name: Extract Bioschemas
run: |
curl -H "Accept: text/csv" --data-urlencode query@sparql/aops.rq -G https://aopwiki.rdf.bigcat-bioinformatics.org/sparql -o aops.csv
groovy createModels.groovy | tee aops.ttl
curl -H "Accept: text/csv" --data-urlencode query@sparql/kers.rq -G https://aopwiki.rdf.bigcat-bioinformatics.org/sparql -o kers.csv
groovy createRelationships.groovy | tee aopwiki-relationships.ttl
- name: Commit Turtle
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add *.ttl
if git diff --exit-code --staged; then
echo "No changes"
else
git commit -m 'Extracted new AOP models as Turtle'
git push
fi