Add script
This commit is contained in:
parent
15181038c9
commit
09e497bea0
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/daily_data_maintenance.yml
Normal file
24
.forgejo/workflows/daily_data_maintenance.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update_planet_file:
|
||||||
|
runs-on: [ lain ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get torrent file
|
||||||
|
shell: bash
|
||||||
|
run: wget https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf.torrent
|
||||||
|
|
||||||
|
- name: Download the planet file
|
||||||
|
shell: bash
|
||||||
|
run: aria2c -T planet-latest.osm.pbf.torrent --seed-time=0
|
||||||
|
|
||||||
|
- name: Move the planet file to the data directory
|
||||||
|
shell: bash
|
||||||
|
run: mv planet-*.osm.pbf /data/planet-latest.osm.bpf
|
||||||
|
|
||||||
|
- name: Print download date
|
||||||
|
shell: bash
|
||||||
|
run: date --iso > /data/planet_download_date.txt
|
||||||
Loading…
Add table
Add a link
Reference in a new issue