Update Data DACH #53
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: Update Data DACH | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14.x' | |
- name: Install dependencies | |
run: npm install | |
- name: Run Script | |
working-directory: ./ | |
run: node update_data.js | |
- name: Add changes to commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GH Action" | |
number=$(find data -type f | wc -l) | |
let number-=2 | |
echo "Anzahl der Nodes: $number" | |
git add data/* | |
git commit -m "🗃 - Auto-Datenupdate DACH $number Nodes" | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Auto-commit Data Update DACH region | |
commit-message: Overpass query from Openstreetmap | |
branch: update-data | |
delete-branch: true |