Refresh notes #416
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Refresh geojson | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '27 5 * * *' | |
env: | |
LANG: "nl_BE.UTF-8" | |
jobs: | |
refreshscript: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install osmtogeojson and geojson-merge | |
run: | | |
npm install -g osmtogeojson | |
npm install -g @mapbox/geojson-merge | |
- name: Set locale to get date in nl_BE format | |
run: | | |
sudo locale-gen nl_BE.UTF-8 | |
sudo update-locale LANG=nl_BE.UTF-8 | |
- name: Call the automate.sh script | |
run: bash automate.sh | |
- name: Push to remote | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "[email protected]" | |
git add data | |
git add html | |
git commit -m "Update geojson files (actions)" | |
git push |