update the script (queries 6-9) #31
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: 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 |