Fetch Bandsintown Events #5071
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> |