Skip to content

Fetch Capitol Theatre Events #11

Fetch Capitol Theatre Events

Fetch Capitol Theatre Events #11

name: Fetch Capitol Theatre Events
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 */6 *'
jobs:
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/${{ github.sha }}/output/capitoltheatre-events.jsonld
download_file: capitoltheatre-events.jsonld
group: artsdata-orion