Skip to content

Fetch Bandsintown Events #5088

Fetch Bandsintown Events

Fetch Bandsintown Events #5088

name: Fetch Bandsintown Events
on:
schedule:
- cron: '0 */8 * * *'
jobs:
fetch:
name: Fetch Events from Bandsintown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Parse events.json file
run: "curl 'https://rest.bandsintown.com/artists/pablo%20nouvelle/events?app_id=${{ secrets.BANDINTOWN_APP_ID }}' | jq '[.[] | {url, datetime, venue: {name: .venue.name, city: .venue.city}}]' -c > src/content/events.json"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Events
file_pattern: src/content/events.json
commit_author: GitHub Actions <[email protected]>