Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/update-19hz-venues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Update 19hz venues

on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: update-19hz-venues
cancel-in-progress: false

jobs:
update-venues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: main
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Extract, merge, and geocode venues
working-directory: 19hz/scripts
run: |
node extract-venues.js
node merge-venues.js
node geocode-venues.js
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
branch: automation/update-19hz-venues
base: main
add-paths: 19hz/venues.json
commit-message: Update 19hz venues
title: Update 19hz venues
body: Updates the 19hz venue data using the extraction, merge, and geocoding scripts.
4 changes: 3 additions & 1 deletion 19hz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
Variation of my funcheapsfmap based off of data scraped from 19hz with a spotify embedded player so you can try preview the artists.

## Venues
Venues are stored in [venues.json](./venues.json) and the scripts are used locally to extract and geocode venues.
Venues are stored in [venues.json](./venues.json). To update them, run **Update 19hz venues** from the repository's Actions tab. The workflow runs the extraction, merge, and geocoding scripts and opens or updates a pull request when the venue file changes.

The repository's Actions settings must allow GitHub Actions to create pull requests. The workflow uses `GITHUB_TOKEN` with contents and pull request write permissions.
Loading