Template
Update token call
This commit is contained in:
1 parent
94e2505ba5
commit
06332996fc
1 file changed
+4
@@ -7,9 +7,13 @@ from github import Github
|
||||
|
||||
def read_token():
|
||||
token_file = Path(os.getcwd(), 'tests', 'token.txt')
|
||||
if token_file.exists():
|
||||
with open(token_file, 'r') as f:
|
||||
token = f.read()
|
||||
|
||||
else:
|
||||
token = os.environ.get('token')
|
||||
|
||||
return token
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user