Push Events to Artsdata Databus #3
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: Push Events to Artsdata Databus | |
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": "scenesfrancophones-events", | |
"comment": "scenesfrancophones.ca Events", | |
"publisher": "${{ secrets.PUBLISHER_URI_GREGORY }}", | |
"group": "${{ github.event.repository.name }}", | |
"version": "${{ steps.version.outputs.dumpdate }}", | |
"downloadUrl": "https://raw.githubusercontent.com/culturecreates/artsdata-planet-scenesfrancophones/main/output/events.jsonld", | |
"downloadFile": "events.jsonld", | |
"reportCallbackUrl": "https://huginn-staging.herokuapp.com/users/1/web_requests/273/databus" | |
}' |