@@ -7,10 +7,11 @@
@Desc : enter point
'''
from set_github_secret import GithubApi
-import json
+import json,os
if __name__=='__main__':
- with open("account.json", "r") as file:
+ current_run_path = os.path.dirname(os.path.realpath(__file__))
+ with open(os.path.join(current_run_path,"account.example.json"), "r") as file:
data = json.load(file)
owner=data["owner"]
token=data["token"]
@@ -7,8 +7,6 @@
@Desc : github api方式设置 Create or update a repository secret
-import requests
import requests
from nacl import encoding, public
import json,sys