-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2421 from openstates/update-2025-01-28
Update TN
- Loading branch information
Showing
132 changed files
with
186 additions
and
189 deletions.
There are no files selected for viewing
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
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 }} |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.