Update script
This commit is contained in:
parent
ea7604983c
commit
497907aae6
1 changed files with 5 additions and 9 deletions
|
@ -6,18 +6,14 @@ jobs:
|
|||
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: /usr/bin/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
|
||||
run: wget https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf -O /data/planet-latest.osm.pbf.part
|
||||
|
||||
- name: Move the planet file
|
||||
shell: bash
|
||||
run: mv -f /data/planet-latest.osm.pbf.part /data/planet-latest.osm.pbf
|
||||
|
||||
- name: Print download date
|
||||
shell: bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue