-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.22 KB
/
semantic-uplift.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Semantic uplift
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- jupyter/**
- '**.py'
- '**.md'
- assets/**
jobs:
uplift:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/opengeospatial/ogc-na-tools.git
- name: Process files
env:
DB_USERNAME: ${{ secrets.UPLOAD_GRAPH_STORE_USERNAME }}
DB_PASSWORD: ${{ secrets.UPLOAD_GRAPH_STORE_PASSWORD }}
run: |
python -m ogc.na.ingest_json --batch --skip-on-missing-context --all \
--ttl --work-dir . --domain-config .ogc/catalog.ttl
python -m ogc.na.update_vocabs -w . .ogc/catalog.ttl --use-git-status \
--update --graph-store https://defs-dev.opengis.net/fuseki-hosted/data
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: '**/*.ttl'
check-links:
uses: ./.github/workflows/check-links.yml