Skip to content

Commit

Permalink
Updates to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Sep 9, 2024
1 parent e02edbd commit 0bcc743
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 178 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/agoradanse-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- cron: '0 0 1 * *'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-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/[email protected]
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
artifact: "agoradanse-com"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
19 changes: 5 additions & 14 deletions .github/workflows/aramusique-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,14 @@ on:
# - cron: '0 0 1 * *'
# Target website updated. Need to update index page parameters.
jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://www.aramusique.org/evenements/liste/page/"
entity_identifier: "h3.tribe-events-calendar-list__event-title.tribe-common-h6.tribe-common-h4--min-medium a"
file_name: "aramusique-events.jsonld"
is_paginated: "true"
headless: "false"

artsdata-push:
runs-on: ubuntu-latest
needs: call-workflow-to-fetch-data
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
artifact: aramusique-org
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/aramusique-events.jsonld

artifact: "aramusique-org"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
18 changes: 5 additions & 13 deletions .github/workflows/capitoltheatre-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- cron: '0 0 1 * *'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://capitoltheatre.ca/events/list/?tribe_paged="
entity_identifier: "h3.tribe-events-list-event-title a"
file_name: "capitoltheatre-events.jsonld"
is_paginated: "true"
headless: "false"

artsdata-push:
runs-on: ubuntu-latest
needs: call-workflow-to-fetch-data
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
artifact: capitoltheatre-ca
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/capitoltheatre-events.jsonld
artifact: "capitoltheatre-ca"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
18 changes: 5 additions & 13 deletions .github/workflows/imperialtheatre-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- cron: '0 3 * * 1'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://imperialtheatre.ca/events/?_paged="
entity_identifier: "div.fl-post-image a"
file_name: "imperialtheatre-events.jsonld"
is_paginated: "true"
headless: "false"

artsdata-push:
runs-on: ubuntu-latest
needs: call-workflow-to-fetch-data
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
artifact: imperialtheatre-ca
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/imperialtheatre-events.jsonld
artifact: "imperialtheatre-ca"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
19 changes: 5 additions & 14 deletions .github/workflows/kingstongrand-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,14 @@ on:
schedule:
- cron: '0 14 * * 1'
jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://www.kingstongrand.ca/events"
entity_identifier: "div.image a"
file_name: "kingston-grand-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/[email protected]
with:
artifact: kingstongrand-ca
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/kingston-grand-events.jsonld

artifact: "kingstongrand-ca"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
20 changes: 6 additions & 14 deletions .github/workflows/levivier-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- cron: '0 0 1 */6 *'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://levivier.ca/fr"
entity_identifier: "div.cont-even a"
file_name: "levivier-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/[email protected]
with:
artifact: levivier-ca
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/levivier-events.jsonld
headless: "false"
artifact: "levivier-ca"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
18 changes: 5 additions & 13 deletions .github/workflows/osac-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@ on:
workflow_dispatch:

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://www.osac.ca/performing-arts/performances?run=patours"
entity_identifier: "td a"
file_name: "osac-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/[email protected]
with:
artifact: osac-ca
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/osac-events.jsonld
artifact: "osac-ca"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
20 changes: 5 additions & 15 deletions .github/workflows/rcaaq-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,14 @@ on:
- cron: '0 0 1 */6 *'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://reseauartactuel.org/liste_evenements/page/"
entity_identifier: "h3.tribe-events-list-event-title a"
file_name: "rcaaq-events.jsonld"
is_paginated: "true"
headless: "false"


artsdata-push:
runs-on: ubuntu-latest
needs: call-workflow-to-fetch-data
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
artifact: reseauartactuel-org
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.fetch-and-commit-data.outputs.commit-hash }}/output/rcaaq-events.jsonld

artifact: "reseauartactuel-org"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
19 changes: 5 additions & 14 deletions .github/workflows/saskatoonsymphony-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,14 @@ on:
- cron: '0 2 * * 2'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://saskatoonsymphony.org/season/"
entity_identifier: "div.vem-custom-calendar-image a"
file_name: "saskatoonsymphony-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/[email protected]
with:
artifact: saskatoonsymphony-org
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/saskatoonsymphony-events.jsonld

artifact: "saskatoonsymphony-org"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
19 changes: 5 additions & 14 deletions .github/workflows/spec-qc-ca-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,14 @@ on:
schedule:
- cron: '0 7 * * 3'
jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://spec.qc.ca/programmation"
entity_identifier: ".headlining__component"
file_name: "spec-qc-ca-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/[email protected]
with:
artifact: spec-qc-ca-events
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/spec-qc-ca-events.jsonld

artifact: "spec-qc-ca-events"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
19 changes: 5 additions & 14 deletions .github/workflows/spectart-com-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,14 @@ on:
schedule:
- cron: '0 6 * * 3'
jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://spectart.com/programmation/"
entity_identifier: "a.thumbnail"
file_name: "spectart-com-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/[email protected]
with:
artifact: spectart-com-events
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/spectart-com-events.jsonld

artifact: "spectart-com-events"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
20 changes: 6 additions & 14 deletions .github/workflows/totem-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- cron: '0 0 1 */6 *'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://totemcontemporain.com/fr/calendrier"
entity_identifier: "h3.picto.padding-bottom-12 a"
file_name: "totem-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/[email protected]
with:
artifact: totemcontemporain-com
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/totem-events.jsonld
headless: "false"
artifact: "totemcontemporain-com"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
18 changes: 5 additions & 13 deletions .github/workflows/yardbirdsuite-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- cron: '0 0 1 */6 *'

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/fetch-data.yml
call-workflow-to-fetch-and-push-data:
uses: ./.github/workflows/fetch-and-push-to-artsdata.yml
with:
page_url: "https://yardbirdsuite.com/events/page/"
entity_identifier: "a.h-100.w-100.position-absolute.t-0.l-0.z-999"
file_name: "yardbirdsuite-events.jsonld"
is_paginated: "true"
headless: "false"

artsdata-push:
runs-on: ubuntu-latest
needs: call-workflow-to-fetch-data
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
artifact: yardbirdsuite-com
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-orion/${{ needs.call-workflow-to-fetch-data.outputs.commit-hash }}/output/yardbirdsuite-events.jsonld
artifact: "yardbirdsuite-com"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}

0 comments on commit 0bcc743

Please sign in to comment.