Skip to content

Commit

Permalink
updated legislation info path in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Brown01 committed Nov 21, 2023
1 parent a26164f commit 56727a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_legislation_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
# Git commands to add, commit, and push
git add "..\\public\\legislations_info.json"
git add "public/legislations_info.json"
git commit -m "Update legislations_info.json" || echo "No changes to commit"
git push
2 changes: 1 addition & 1 deletion scripts/legislation_info_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
table = api.table('apps7I6q0g9Hyb6j9','tblydWhHOZeqjzycO')
legislation = table.all()
legislation_list = [x['fields'] for x in legislation]
with open(r"..\public\legislations_info.json", "w") as outfile:
with open("../public/legislations_info.json", "w") as outfile:
json.dump(legislation_list, fp = outfile,indent = 4)

0 comments on commit 56727a7

Please sign in to comment.