From 32c2be933fcfe11359bf24366e76b15a01333fab Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 16 Jun 2025 14:35:17 +0200 Subject: [PATCH] Add daily updates of pmtiles file --- .forgejo/workflows/update_daily.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.forgejo/workflows/update_daily.yml b/.forgejo/workflows/update_daily.yml index cad23a6..c23a497 100644 --- a/.forgejo/workflows/update_daily.yml +++ b/.forgejo/workflows/update_daily.yml @@ -36,3 +36,15 @@ jobs: DATE=$(echo $TIMESTAMP | sed "s/T.*//") echo $DATE echo $DATE /data/planet_version.txt + + + update_protomaps: + runs-on: [ osm-cache ] + steps: + - uses: https://source.mapcomplete.org/actions/checkout@v4 + - name: Download the pmtile file + shell: bash + run: wget "https://build.protomaps.com/$(date +%Y%m%d).pmtiles" -O /data/planet-latest.pmtiles.part + - name: Move the pmtile file + shell: bash + run: mv -f /data/planet-latest.pmtiles.part /data/planet-latest.pmtiles