Skip to content

Fetch YardBird Events #7

Fetch YardBird Events

Fetch YardBird Events #7

name: Fetch YardBird 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://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:
needs: fetch-and-commit-data
uses: culturecreates/artsdata-planet-ipaa/.github/workflows/push-entities-to-artsdata.yml@main
with:
artifact_name: yardbirdsuite-com
entity_url: https://yardbirdsuite.com/events/
download_url: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/yardbirdsuite-events.jsonld
download_file: yardbirdsuite-events.jsonld
secrets:
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }}