Merge pull request #3653 from SwissDataScienceCenter/release/v2.8.0 #52
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
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/[email protected] | |
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 "[email protected]" | |
git config --local user.name "RenkuBot" | |
git add $(renku --version)/shacl_shape.json | |
git commit -m "Publish SHACL shape for $(renku --version)" | |
git push |