-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.13 KB
/
uplift-all.yaml
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
name: Uplift all vocabulary files
on:
workflow_dispatch:
jobs:
uplift-all:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/opengeospatial/ogc-na-tools.git
- name: Process files
run: |
#find . -name '*.csv' | while read CSV_FILE; do python -m ogc.na.ingest_json \
# --skip-on-missing-context --json-ld --context csv2python.yml "${CSV_FILE}" > "${CSV_FILE}.json"
# done
python -m ogc.na.ingest_json --batch --all --skip-on-missing-context \
--json-ld --ttl --work-dir . --domain-config .ogc/catalog.ttl
- name: Git pull before push
run: git pull
- name: Add and commit
uses: EndBug/add-and-commit@v9
with:
message: "Semantic uplift of all vocabulary source files"
default_author: github_actions