planet-file-updater/.forgejo/workflows/daily_data_maintenance.yml

27 lines
670 B
YAML

on:
schedule:
- cron: "0 2 * * 5"
jobs:
update_planet_file:
runs-on: [ lain ]
steps:
- uses: actions/checkout@v3
- name: Tests
shell: bash
run: pwd && ls / && ls ~
- name: Download the planet file
shell: bash
run: wget --show-progress 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
run: date --iso > /data/planet_download_date.txt