Skip to content

take two on manual edit #239

take two on manual edit

take two on manual edit #239

name: Update Registry
on: [push]
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@master#egg=network_wrangler
python update_registry.py
- name: commit files
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit --allow-empty -m "GitHub Action automated registry update" -a
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}