-
Notifications
You must be signed in to change notification settings - Fork 24
31 lines (29 loc) · 952 Bytes
/
publish_shacl.yml
File metadata and controls
31 lines (29 loc) · 952 Bytes
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
name: Publish SHACL shape for current version
on:
push:
branches:
- master
paths:
- 'renku/data/shacl_shape.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-linux
with:
python-version: "3.10"
- name: Publish shape
run: |
git clone https://${{secrets.RENKUBOT_GITHUB_TOKEN}}@github.com/SwissDataScienceCenter/renku-ontology.git shacl_publish
cd shacl_publish
mkdir $(renku --version)
cp ../renku/data/shacl_shape.json ./$(renku --version)/
git config --local user.email "renku@datascience.ch"
git config --local user.name "RenkuBot"
git add $(renku --version)/shacl_shape.json
git commit -m "Publish SHACL shape for $(renku --version)"
git push