There was an error while loading. Please reload this page.
1 parent 63f7d60 commit ed6fe69Copy full SHA for ed6fe69
2 files changed
.github/workflows/build.yml
@@ -24,4 +24,9 @@ jobs:
24
git add .
25
git commit -m "feat: update source data and csvs"
26
git push -u origin
27
- gh pr create --fill
+ env:
28
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29
+ - name: Create PR
30
+ run: gh pr create --fill
31
32
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
scripts/fetch_data.py
@@ -1,3 +1,4 @@
1
+import os
2
from pathlib import Path
3
4
from github import Auth, Github
@@ -110,7 +111,11 @@
110
111
112
113
def main() -> None:
- github = Github(auth=Auth.NetrcAuth())
114
+ if github_token := os.environ.get("GITHUB_TOKEN"):
115
+ auth = Auth.Token(github_token)
116
+ else:
117
+ auth = Auth.NetrcAuth()
118
+ github = Github(auth=auth)
119
120
# Fetch repo data
121
for repository in REPOSITORIES:
0 commit comments