Skip to content

Commit a484449

Browse files
authored
Merge branch 'master' into 732_datasets_svc
2 parents d3f55ea + 60947e9 commit a484449

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish_shacl.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish SHACL shape for current version
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'renku/data/shacl_shape.json'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set up Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: 3.7
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install .[all]
23+
- name: Publish shape
24+
run: |
25+
git clone https://${{secrets.SHACL_ACCESS_TOKEN}}@github.com/SwissDataScienceCenter/renku-ontology.git shacl_publish
26+
cd shacl_publish
27+
mkdir $(renku --version)
28+
cp ../renku/data/shacl_shape.json ./$(renku --version)/
29+
git config --local user.email "[email protected]"
30+
git config --local user.name "RenkuBot"
31+
git add $(renku --version)/shacl_shape.json
32+
git commit -m "Publish SHACL shape for $(renku --version)"
33+
git push

0 commit comments

Comments
 (0)