-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.44 KB
/
on-push.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: On push
on:
workflow_dispatch:
inputs:
changed-files:
description: Changed files for processing
type: string
push:
branches:
- master
jobs:
uplift:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
since_last_remote_commit: true
separator: ','
- 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@main#egg=ogc-na'
- name: Process files
run: |
MOD_FILES=${{ steps.changed-files.outputs.all_changed_files }},${{ inputs.changed-files }}
echo Changed files: ${MOD_FILES}
python -m ogc.na.ingest_json --batch --skip-on-missing-context \
--json-ld --ttl --work-dir . --domain-config .ogc/catalog.ttl \
--provenance-base-uri https://raw.githubusercontent.com/ogcincubator/master/chek-profiles/ \
${MOD_FILES}
- name: Add and commit
uses: EndBug/add-and-commit@v9
with:
message: "Semantic uplift on push"
default_author: github_actions