File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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 "renku@datascience.ch"
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
You can’t perform that action at this time.
0 commit comments