Skip to content

Commit

Permalink
Updated workflows to use artsdata-pipeline workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Feb 9, 2024
1 parent c3a88db commit aaf1e3e
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 46 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/capitoltheatre-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
52 changes: 40 additions & 12 deletions .github/workflows/levivier-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
52 changes: 40 additions & 12 deletions .github/workflows/totem-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
50 changes: 39 additions & 11 deletions .github/workflows/yardbirdsuite-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aaf1e3e

Please sign in to comment.