Update the Open SbD4Nano Cache #110
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: Update the Open SbD4Nano Cache | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 2" | |
push: | |
paths: | |
- fetchData.sh | |
jobs: | |
fetch-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install raptor2-utils and groovy | |
run: | | |
sudo apt update | |
sudo apt install raptor2-utils openjdk-17-jdk groovy | |
- name: Generate a new open.ttl | |
run: | | |
bash fetchData.sh | |
make validation | |
make open.ttl | |
- name: Generate the Shex validation reports | |
run: | | |
bash fetchShapes.sh | |
make all | |
- name: Commit report | |
run: | | |
git config --global user.name 'GitHub Action' | |
git config --global user.email '[email protected]' | |
git add open.txt open.ttl *.json | |
if git diff --exit-code --staged; then | |
echo "No changes" | |
else | |
git commit -m 'Updated service open landscape data' | |
git push | |
fi |