diff --git a/.github/workflows/agoradanse-events.yml b/.github/workflows/agoradanse-events.yml new file mode 100644 index 0000000..f82423b --- /dev/null +++ b/.github/workflows/agoradanse-events.yml @@ -0,0 +1,27 @@ +name: Fetch Agoradanse Events + +on: + workflow_dispatch: + schedule: + - cron: '0 0 1 * *' + +jobs: + call-workflow-to-fetch-data: + uses: ./.github/workflows/fetch-and-push-to-artsdata.yml + with: + page_url: "https://agoradanse.com/evenement/montreal-marrakech/?utm_source=fb&utm_medium=Facebook_Mobile_Feed&utm_campaign=120211877123720753&fbclid=IwZXh0bgNhZW0BMAABHToAQwEUL2gvJgRPRTTbIXvTlaiA3akDqBK4DcG97r2jWKYI1n0LQdUHEw_aem_F-kVG3LEqMQx8UnatShSEQ" + entity_identifier: "div.x-container.max a" + file_name: "agoradanse-events.jsonld" + is_paginated: "false" + headless: "false" + + artsdata-push: + runs-on: ubuntu-latest + needs: call-workflow-to-fetch-data + steps: + - name: Action setup + uses: culturecreates/artsdata-pipeline-action@v1.1.0 + with: + artifact: agoradanse-com + publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}" + downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/agoradanse-events.jsonld