Download and Build #208
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: Download and Build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 2 * * 0' | |
jobs: | |
download: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- name: Run Download | |
run: npm run download | |
- name: Run Build Addresses By Ward | |
run: npm run build:wardAddresses | |
- name: Run Build Distinct Streets | |
run: npm run build:distinctStreets | |
- name: Commit latest data | |
run: | | |
git config --global user.name 'cityssm-bot' | |
git config --global user.email 'cityssm-bot@users.noreply.github.com' | |
git commit -am "Latest data" | |
git push |