Skip to content

Pull_BillTracks

Pull_BillTracks #105

Workflow file for this run

name: Pull_BillTracks
on:
workflow_dispatch:
schedule:
- cron: "0 21 * * 2"
- cron: "0 21 * * 5"
jobs:
ballotpedia_python:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.9' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run sj-gobierno.py to get the latest data
run: python code/ballotpedia.py
- name: Commit files # Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git pull origin main
git add -A
git diff-index --quiet HEAD || (git commit -m "retrieves bulk ballotpedia" && git push)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main