-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.79 KB
/
space-travel-comparison.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
name: Space Travel Comparison
on:
workflow_dispatch:
inputs:
token:
description: 'Wikidata Mismatch Finder Access Token.'
schedule:
- cron: '0 0 10 * *'
jobs:
compare:
runs-on: ubuntu-latest
container: ghcr.io/fusion-jena/abecto:v3.1.1
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Run ABECTO Space Travel Comparison and Store Results
run: |
abecto \
--trig space-travel-comparison-result.trig \
--export deviations=space-travel-comparison-deviations.csv \
--export wdMismatchFinder=space-travel-comparison-wdMismatchFinder.csv \
--export measurementsMarkdown=space-travel-comparison-measurements.md \
space-travel-comparison.trig
- name: Archive Results
uses: actions/upload-artifact@v4
with:
name: Space Travel Comparison Results
path: space-travel-comparison-*
- name: Upload Wikidata Mismatch Finder report
if: ${{ github.event.inputs.token != null || github.event.schedule != null }}
run: |
apt update && apt install -y curl
curl -X POST "https://mismatch-finder.toolforge.org/api/imports" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${{ github.event.inputs.token || secrets.MISMATCH_FINDER_TOKEN }}" \
-F "[email protected]" \
-F "description=Mismatches found by a comparison of space travel data from Wikidata and DBpedia using ABECTO. See: https://github.com/fusion-jena/abecto-space-travel-comparison" \
-F "external_source=DBpedia" \
-F "external_source_url=http://dbpedia.org/" \
-F "expires=$(date -d "-9 days 1 month" +"%Y-%m-10")"