From 0c5ea139374cfdf98ec820c05b4672e8506432ad Mon Sep 17 00:00:00 2001 From: ProLoser <67395+ProLoser@users.noreply.github.com> Date: Tue, 17 Nov 2026 00:47:34 +0000 Subject: [PATCH] Add manual 19hz venue update workflow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/update-19hz-venues.yml | 38 ++++++++++++++++++++++++ 19hz/README.md | 4 ++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update-19hz-venues.yml diff --git a/.github/workflows/update-19hz-venues.yml b/.github/workflows/update-19hz-venues.yml new file mode 100644 index 0000000..9cbd62b --- /dev/null +++ b/.github/workflows/update-19hz-venues.yml @@ -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. diff --git a/19hz/README.md b/19hz/README.md index 9e23b5b..f844d32 100644 --- a/19hz/README.md +++ b/19hz/README.md @@ -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.