Skip to content

Commit

Permalink
Updating workflows to use reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Oct 21, 2024
1 parent b165b94 commit e33d9c3
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 77 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/osac-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ on:
workflow_dispatch:

jobs:
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"
artifact: "osac-ca"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "osac-ca"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "osac-events.jsonld"
page-url: "https://www.osac.ca/performing-arts/performances?run=patours"
entity-identifier: "td a"
token: "${{ secrets.GITHUB_TOKEN }}"
25 changes: 14 additions & 11 deletions .github/workflows/rcaaq-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ on:
- cron: '0 0 1 */6 *'

jobs:
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"
artifact: "reseauartactuel-org"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "reseauartactuel-org"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "rcaaq-events.jsonld"
page-url: "https://reseauartactuel.org/liste_evenements/page/"
entity-identifier: "h3.tribe-events-list-event-title a"
is-paginated: "true"
token: "${{ secrets.GITHUB_TOKEN }}"
24 changes: 13 additions & 11 deletions .github/workflows/saskatoonsymphony-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ on:
- cron: '0 2 * * 2'

jobs:
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"
artifact: "saskatoonsymphony-org"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "saskatoonsymphony-org"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "saskatoonsymphony-events.jsonld"
page-url: "https://saskatoonsymphony.org/season/"
entity-identifier: "div.vem-custom-calendar-image a"
token: "${{ secrets.GITHUB_TOKEN }}"
24 changes: 13 additions & 11 deletions .github/workflows/spec-qc-ca-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ on:
schedule:
- cron: '0 7 * * 3'
jobs:
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"
artifact: "spec-qc-ca-events"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "spec-qc-ca-events"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "spec-qc-ca-events.jsonld"
page-url: "https://spec.qc.ca/programmation"
entity-identifier: ".headlining__component"
token: "${{ secrets.GITHUB_TOKEN }}"
24 changes: 13 additions & 11 deletions .github/workflows/spectart-com-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ on:
schedule:
- cron: '0 6 * * 3'
jobs:
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"
artifact: "spectart-com-events"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "spectart-com-events"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "spectart-com-events.jsonld"
page-url: "https://spectart.com/programmation/"
entity-identifier: "a.thumbnail"
token: "${{ secrets.GITHUB_TOKEN }}"
24 changes: 13 additions & 11 deletions .github/workflows/totem-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ on:
- cron: '0 0 1 */6 *'

jobs:
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"
artifact: "totemcontemporain-com"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "totemcontemporain-com"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "totem-events.jsonld"
page-url: "https://totemcontemporain.com/fr/calendrier"
entity-identifier: "h3.picto.padding-bottom-12 a"
token: "${{ secrets.GITHUB_TOKEN }}"
25 changes: 14 additions & 11 deletions .github/workflows/yardbirdsuite-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ on:
- cron: '0 0 1 */6 *'

jobs:
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"
artifact: "yardbirdsuite-com"
secrets:
PUBLISHER_URI_GREGORY: ${{ secrets.PUBLISHER_URI_GREGORY }}
artsdata-fetch-and-push:
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
mode: "fetch-push"
artifact: "yardbirdsuite-com"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadFile: "yardbirdsuite-events.jsonld"
page-url: "https://yardbirdsuite.com/events/page/"
entity-identifier: "a.h-100.w-100.position-absolute.t-0.l-0.z-999"
is-paginated: "true"
token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit e33d9c3

Please sign in to comment.