Skip to content

Bug fix

Bug fix #21

name: Create OSM diff
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Generate diff
run: python3 src/de/osm/tools/diff.py src/de/osm/streets.csv src/de/osm/streets.ignore.csv src/de/osm/streets.updated.csv
- name: Commit new diff
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add -A
git diff-index --quiet HEAD || git commit -m "Generated by diff.py"
git push