Skip to content

Push Mapping to Artsdata #3

Push Mapping to Artsdata

Push Mapping to Artsdata #3

name: Push Mapping to Artsdata
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set current date as output
id: version # this is used on variable path
run: echo "dumpdate=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_OUTPUT
- name: Call Artsdata Databus
run: |
curl \
-H 'Content-Type: application/json' \
-X POST http://api.artsdata.ca/databus/ \
--data '{ "artifact": "grandtheatre-qc-ca-event-type-mapping",
"comment": "Event type taxonomy to map strings from the original GTQ website to Artsdata event types. https://github.com/culturecreates/artsdata-planet-gtq/blob/main/gtq-event-type-mapping.ttl",
"publisher": "${{ secrets.PUBLISHER_URI_GREGORY }}",
"group": "${{ github.event.repository.name }}",
"version": "${{ steps.version.outputs.dumpdate }}",
"downloadUrl": "https://raw.githubusercontent.com/culturecreates/artsdata-planet-gtq/main/gtq-event-type-mapping.ttl",
"downloadFile": "gtq-event-type-mapping.ttl",
"reportCallbackUrl": "https://huginn-staging.herokuapp.com/users/1/web_requests/273/databus"
}'