-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated workflows to use artsdata-pipeline workflow
- Loading branch information
1 parent
c3a88db
commit aaf1e3e
Showing
4 changed files
with
158 additions
and
46 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,43 @@ on: | |
- cron: '0 0 1 */6 *' | ||
|
||
jobs: | ||
call-artsdata-push-workflow: | ||
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main | ||
with: | ||
page_url: https://capitoltheatre.ca/page/ | ||
entity_identifier: "div.et_pb_portfolio_grid_items a" | ||
file_name: capitoltheatre-events.jsonld | ||
is_paginated: true | ||
artifact_name: capitoltheatre-ca | ||
secrets: | ||
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }} | ||
fetch-and-commit-data: | ||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Run Main Script | ||
run: | | ||
bundle exec ruby src/main.rb \ | ||
https://capitoltheatre.ca/page/ \ | ||
"div.et_pb_portfolio_grid_items a" \ | ||
output/capitoltheatre-events.jsonld \ | ||
true | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add "output/capitoltheatre-events.jsonld" | ||
git commit -m "Add data generated by the script" | ||
git push | ||
artsdata-push: | ||
runs-on: ubuntu-latest | ||
needs: fetch-and-commit-data | ||
steps: | ||
- name: Action setup | ||
uses: culturecreates/[email protected] | ||
with: | ||
artifact_name: capitoltheatre-ca | ||
page_url: https://capitoltheatre.ca/ | ||
publisher_uri: "${{ secrets.PUBLISHER_URI_GREGORY }}" | ||
download_uri: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/capitoltheatre-events.jsonld | ||
download_file: capitoltheatre-events.jsonld | ||
group: artsdata-orion |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,44 @@ on: | |
- cron: '0 0 1 */6 *' | ||
|
||
jobs: | ||
call-artsdata-push-workflow: | ||
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main | ||
with: | ||
page_url: https://levivier.ca/fr | ||
entity_identifier: "div.cont-even a" | ||
file_name: levivier-events.jsonld | ||
is_paginated: false | ||
artifact_name: levivier-ca | ||
base_url: https://levivier.ca | ||
secrets: | ||
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }} | ||
fetch-and-commit-data: | ||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Run Main Script | ||
run: | | ||
bundle exec ruby src/main.rb \ | ||
https://levivier.ca/fr \ | ||
"div.cont-even a" \ | ||
output/levivier-events.jsonld \ | ||
false \ | ||
https://levivier.ca | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add "output/levivier-events.jsonld" | ||
git commit -m "Add data generated by the script" | ||
git push | ||
artsdata-push: | ||
runs-on: ubuntu-latest | ||
needs: fetch-and-commit-data | ||
steps: | ||
- name: Action setup | ||
uses: culturecreates/[email protected] | ||
with: | ||
artifact_name: levivier-ca | ||
page_url: https://levivier.ca/fr | ||
publisher_uri: "${{ secrets.PUBLISHER_URI_GREGORY }}" | ||
download_uri: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/levivier-events.jsonld | ||
download_file: levivier-events.jsonld | ||
group: artsdata-orion |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,44 @@ on: | |
- cron: '0 0 1 */6 *' | ||
|
||
jobs: | ||
call-artsdata-push-workflow: | ||
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main | ||
with: | ||
page_url: https://totemcontemporain.com/fr/calendrier | ||
entity_identifier: "h3.picto.padding-bottom-12 a" | ||
file_name: totem-events.jsonld | ||
is_paginated: false | ||
artifact_name: totemcontemporain-com | ||
base_url: https://totemcontemporain.com | ||
secrets: | ||
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }} | ||
fetch-and-commit-data: | ||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Run Main Script | ||
run: | | ||
bundle exec ruby src/main.rb \ | ||
https://totemcontemporain.com/fr/calendrier \ | ||
"h3.picto.padding-bottom-12 a" \ | ||
output/totem-events.jsonld \ | ||
false \ | ||
https://totemcontemporain.com | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add "output/totem-events.jsonld" | ||
git commit -m "Add data generated by the script" | ||
git push | ||
artsdata-push: | ||
runs-on: ubuntu-latest | ||
needs: fetch-and-commit-data | ||
steps: | ||
- name: Action setup | ||
uses: culturecreates/[email protected] | ||
with: | ||
artifact_name: totemcontemporain-com | ||
page_url: https://totemcontemporain.com/fr/calendrier | ||
publisher_uri: "${{ secrets.PUBLISHER_URI_GREGORY }}" | ||
download_uri: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/totem-events.jsonld | ||
download_file: totem-events.jsonld | ||
group: artsdata-orion |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,43 @@ on: | |
- cron: '0 0 1 */6 *' | ||
|
||
jobs: | ||
call-artsdata-push-workflow: | ||
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main | ||
with: | ||
page_url: https://yardbirdsuite.com/events/ | ||
entity_identifier: "a.h-100.w-100.position-absolute.t-0.l-0.z-999" | ||
file_name: yardbirdsuite-events.jsonld | ||
is_paginated: true | ||
artifact_name: yardbirdsuite-com | ||
secrets: | ||
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }} | ||
fetch-and-commit-data: | ||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- name: Run Main Script | ||
run: | | ||
bundle exec ruby src/main.rb \ | ||
https://yardbirdsuite.com/events/page/ \ | ||
"a.h-100.w-100.position-absolute.t-0.l-0.z-999" \ | ||
output/yardbirdsuite-events.jsonld \ | ||
true | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add "output/yardbirdsuite-events.jsonld" | ||
git commit -m "Add data generated by the script" | ||
git push | ||
artsdata-push: | ||
runs-on: ubuntu-latest | ||
needs: fetch-and-commit-data | ||
steps: | ||
- name: Action setup | ||
uses: culturecreates/[email protected] | ||
with: | ||
artifact_name: yardbirdsuite-com | ||
page_url: https://yardbirdsuite.com/events/ | ||
publisher_uri: "${{ secrets.PUBLISHER_URI_GREGORY }}" | ||
download_uri: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/yardbirdsuite-events.jsonld | ||
download_file: yardbirdsuite-events.jsonld | ||
group: artsdata-orion |