add 2020 Oakland lanes modification #40
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 Registry | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip update')" | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: execute py script | |
run: | | |
python -m pip install --upgrade pip | |
pip install --user -e git+https://github.com/wsp-sag/network_wrangler.git@develop#egg=network_wrangler | |
pip install pytest | |
python update_registry.py | |
- name: commit files | |
run: | | |
git config --local user.email "modeling@bayareametro.gov" | |
git config --local user.name "modelbot" | |
git add -A | |
git commit --allow-empty -m "GitHub Action automated registry update" -a | |
- name: push changes | |
uses: ad-m/github-push-action@v0.6.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: bicounty |