Skip to content

Fetch GrandTheatreQuebec Events #1

Fetch GrandTheatreQuebec Events

Fetch GrandTheatreQuebec Events #1

name: Fetch GrandTheatreQuebec Events
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 1'
jobs:
fetch-data:
runs-on: ubuntu-latest
steps:
- name: Fetch data using artsdata pipeline action
uses: culturecreates/artsdata-pipeline-action@v2
with:
mode: "fetch"
downloadFile: "grandtheatrequebec-events.jsonld"
page-url: "https://grandtheatre.qc.ca/programmation/"
entity-identifier: "article.show a"
token: "${{ secrets.GITHUB_TOKEN }}"
add-concepts:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run ruby code
run: |
bundle exec ruby main.rb
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git pull
git add "output/grandtheatrequebec-events-with-concept.jsonld"
git commit -m "Add data generated by the script"
git push
import-to-artsdata:
runs-on: ubuntu-latest
steps:
- name: Import data using artsdata pipeline action
uses: culturecreates/artsdata-pipeline-action@v2
with:
artifact: "derived-grandtheatrequebec-ca"
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: "https://raw.githubusercontent.com/culturecreates/artsdata-planet-gtq/refs/heads/main/output/grandtheatrequebec-events-with-concept.jsonld"