Skip to content

Commit

Permalink
Merge pull request #2421 from openstates/update-2025-01-28
Browse files Browse the repository at this point in the history
Update TN
  • Loading branch information
alexobaseki authored Jan 28, 2025
2 parents 9932de7 + 0a52438 commit c4d0222
Show file tree
Hide file tree
Showing 132 changed files with 186 additions and 189 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/update-us.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
name: Update US data

on:
schedule:
- cron: "0 0 31 2 *" # Disable cron job for now. There is no February 31st
workflow_dispatch:

jobs:
update-us:
runs-on: ubuntu-latest

steps:
# Python & dependency installation
- uses: actions/checkout@v3
- name: Yaml file linting
run: |
docker run --rm \
-v $(pwd):/code \
registry.gitlab.com/pipeline-components/yamllint:latest \
-s .
- name: setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install Poetry
uses: snok/[email protected]
- name: cache Poetry virtualenv
uses: actions/cache@v3
id: cache
with:
path: ~/.virtualenvs/
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: set poetry config path
run: poetry config virtualenvs.path ~/.virtualenvs
- name: install dependencies
run: poetry install --no-root

- name: people to database
run: poetry run os-us-to-yaml
env:
OS_PEOPLE_DIRECTORY: ${{ env.GITHUB_WORKSPACE }}
- name: update remote git repo if necessary
run: |-
git diff
git checkout -b "automatic-us-updates-$(date +%Y-%m-%d)"
git config --global user.email "[email protected]"
git config --global user.name "openstates-bot"
git add -A
git commit -m "automated US update" || exit 0
git push -u origin "automatic-us-updates-$(date +%Y-%m-%d)"
gh pr create -f
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
#name: Update US data
#
#on:
# schedule:
# cron: "0 10 * * *"
# workflow_dispatch:
#
#jobs:
# update-us:
# runs-on: ubuntu-latest
#
# steps:
# # Python & dependency installation
# - uses: actions/checkout@v3
# - name: Yaml file linting
# run: |
# docker run --rm \
# -v $(pwd):/code \
# registry.gitlab.com/pipeline-components/yamllint:latest \
# -s .
# - name: setup Python 3.9
# uses: actions/setup-python@v4
# with:
# python-version: 3.9
# - name: install Poetry
# uses: snok/[email protected]
# - name: cache Poetry virtualenv
# uses: actions/cache@v3
# id: cache
# with:
# path: ~/.virtualenvs/
# key: poetry-${{ hashFiles('**/poetry.lock') }}
# restore-keys: |
# poetry-${{ hashFiles('**/poetry.lock') }}
# - name: set poetry config path
# run: poetry config virtualenvs.path ~/.virtualenvs
# - name: install dependencies
# run: poetry install --no-root
#
# - name: people to database
# run: poetry run os-us-to-yaml
# env:
# OS_PEOPLE_DIRECTORY: ${{ env.GITHUB_WORKSPACE }}
# - name: update remote git repo if necessary
# run: |-
# git diff
# git checkout -b "automatic-us-updates-$(date +%Y-%m-%d)"
# git config --global user.email "[email protected]"
# git config --global user.name "openstates-bot"
# git add -A
# git commit -m "automated US update" || exit 0
# git push -u origin "automatic-us-updates-$(date +%Y-%m-%d)"
# gh pr create -f
# env:
# GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '1'
offices:
- classification: district
address: Room 740, Cordell Hull Building 425 Rep. John Lewis Way North 740, Nashville,
address: Room 740, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-1946
fax: 615-253-0374
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '51'
offices:
- classification: district
address: Room 574, Cordell Hull Building 425 Rep. John Lewis Way North 574, Nashville,
address: Room 574, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-3229
fax: 615-253-0233
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '17'
offices:
- classification: district
address: Room 630, Cordell Hull Building 425 Rep. John Lewis Way North 630, Nashville,
address: Room 630, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-4419
fax: 615-253-0203
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ roles:
district: '68'
offices:
- classification: district
address: Room 612, Cordell Hull Building 425 Rep. John Lewis Way North 612, Nashville,
address: Room 612, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-4341
fax: 615-253-0269
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '6'
offices:
- classification: district
address: Room 776, Cordell Hull Building 425 Rep. John Lewis Way North 776, Nashville,
address: Room 776, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-1648
fax: 615-253-0270
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '22'
offices:
- classification: district
address: Room 772, Cordell Hull Building 425 Rep. John Lewis Way North 772, Nashville,
address: Room 772, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2374
fax: 615-253-0193
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '50'
offices:
- classification: district
address: Room 400, Cordell Hull Building 425 Rep. John Lewis Way North 400, Nashville,
address: Room 400, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-4317
fax: 615-741-0360
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '11'
offices:
- classification: district
address: Room 706, Cordell Hull Building 425 Rep. John Lewis Way North 706, Nashville,
address: Room 706, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-3227
fax: 615-253-0280
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '56'
offices:
- classification: district
address: Room 592, Cordell Hull Building 425 Rep. John Lewis Way North 592, Nashville,
address: Room 592, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-0709
fax: 615-253-0162
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ roles:
district: '4'
offices:
- classification: district
address: Room 744, Cordell Hull Building 425 5th Ave. North 744, Nashville, TN
37243
address: Room 744, Cordell Hull Building 425 5th Ave. North, Nashville, TN 37243
voice: 615-741-5761
fax: 615-253-0197
links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '31'
offices:
- classification: district
address: Room 714, Cordell Hull Building 425 Rep. John Lewis Way North 714, Nashville,
address: Room 714, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-3036
links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '79'
offices:
- classification: district
address: Room 652, Cordell Hull Building 425 Rep. John Lewis Way North 652, Nashville,
address: Room 652, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-7478
fax: 615-253-0218
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '48'
offices:
- classification: district
address: Room 646, Cordell Hull Building 425 Rep. John Lewis Way North 646, Nashville,
address: Room 646, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2180
fax: 615-253-0372
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '2'
offices:
- classification: district
address: Room 519, Cordell Hull Building 425 Rep. John Lewis Way North 519, Nashville,
address: Room 519, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2886
fax: 615-253-0247
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '59'
offices:
- classification: district
address: Room 412, Cordell Hull Building 425 Rep. John Lewis Way North 412, Nashville,
address: Room 412, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2035
fax: 615-253-0290
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '25'
offices:
- classification: district
address: Room 600, Cordell Hull Building 425 Rep. John Lewis Way North 600, Nashville,
address: Room 600, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2343
links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ roles:
district: '19'
offices:
- classification: district
address: Room 766, Cordell Hull Building 425 Rep. John Lewis Way North 766, Nashville,
address: Room 766, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2453
fax: 615-253-0268
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '37'
offices:
- classification: district
address: Room 620, Cordell Hull Building 425 Rep. John Lewis Way North 620, Nashville,
address: Room 620, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-6849
fax: 615-253-0264
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '82'
offices:
- classification: district
address: Room 500, Cordell Hull Building 425 Rep. John Lewis Way North 500, Nashville,
address: Room 500, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2134
fax: 615-741-1446
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '73'
offices:
- classification: district
address: Room 526, Cordell Hull Building 425 Rep. John Lewis Way North 526, Nashville,
address: Room 526, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-7475
fax: 615-253-0373
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '46'
offices:
- classification: district
address: Room 528, Cordell Hull Building 425 Rep. John Lewis Way North 528, Nashville,
address: Room 528, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-7086
fax: 615-253-0206
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '70'
offices:
- classification: district
address: Room 520, Cordell Hull Building 425 Rep. John Lewis Way North 520, Nashville,
address: Room 520, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-7476
fax: 615-253-0258
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ offices:
- classification: district
address: 156 Tree Frog Lane, Benton, TN 37307
- classification: district
address: Room 556, Cordell Hull Building 425 Rep. John Lewis Way North 556, Nashville,
address: Room 556, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-7799
fax: 615-253-0252
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '19'
offices:
- classification: district
address: Room 588, Cordell Hull Building 425 Rep. John Lewis Way North 588, Nashville,
address: Room 588, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-6879
fax: 615-253-0212
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '5'
offices:
- classification: district
address: Room 648, Cordell Hull Building 425 Rep. John Lewis Way North 648, Nashville,
address: Room 648, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-7482
fax: 615-253-0210
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ roles:
district: '37'
offices:
- classification: district
address: Room 752, Cordell Hull Building 425 Rep. John Lewis Way North 752, Nashville,
address: Room 752, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-6853
fax: 615-253-0282
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '81'
offices:
- classification: district
address: Room 680, Cordell Hull Building 425 Rep. John Lewis Way North 680, Nashville,
address: Room 680, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-3774
fax: 615-253-0263
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '36'
offices:
- classification: district
address: Room 674, Cordell Hull Building 425 Rep. John Lewis Way North 674, Nashville,
address: Room 674, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-3335
fax: 615-253-0296
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '41'
offices:
- classification: capitol
address: Room 578, Cordell Hull Building 425 Rep. John Lewis Way North 578, Nashville,
address: Room 578, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-1260
fax: 615-253-0328
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ roles:
district: '27'
offices:
- classification: district
address: Room 746, Cordell Hull Building 425 Rep. John Lewis Way North 746, Nashville,
address: Room 746, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-1810
fax: 615-253-0179
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '18'
offices:
- classification: capitol
address: Room 562, Cordell Hull Building 425 Rep. John Lewis Way North 562, Nashville,
address: Room 562, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-2287
fax: 615-253-0348
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ roles:
district: '30'
offices:
- classification: district
address: Room 502, Cordell Hull Building 425 Rep. John Lewis Way North 502, Nashville,
address: Room 502, Cordell Hull Building 425 Rep. John Lewis Way North, Nashville,
TN 37243
voice: 615-741-1934
fax: 615-253-0271
Expand Down
Loading

0 comments on commit c4d0222

Please sign in to comment.