rdgen
This commit is contained in:
@@ -272,7 +272,7 @@ def resize_and_encode_icon(imagefile):
|
|||||||
|
|
||||||
#the following is used when accessed from an external source, like the rustdesk api server
|
#the following is used when accessed from an external source, like the rustdesk api server
|
||||||
def startgh(request):
|
def startgh(request):
|
||||||
print(request)
|
#print(request)
|
||||||
data_ = json.loads(request.body)
|
data_ = json.loads(request.body)
|
||||||
####from here run the github action, we need user, repo, access token.
|
####from here run the github action, we need user, repo, access token.
|
||||||
url = 'https://api.github.com/repos/'+_settings.GHUSER+'/rdgen/actions/workflows/generator-windows.yml/dispatches'
|
url = 'https://api.github.com/repos/'+_settings.GHUSER+'/rdgen/actions/workflows/generator-windows.yml/dispatches'
|
||||||
@@ -297,6 +297,7 @@ def startgh(request):
|
|||||||
'Authorization': 'Bearer '+_settings.GHBEARER,
|
'Authorization': 'Bearer '+_settings.GHBEARER,
|
||||||
'X-GitHub-Api-Version': '2022-11-28'
|
'X-GitHub-Api-Version': '2022-11-28'
|
||||||
}
|
}
|
||||||
|
print(data)
|
||||||
response = requests.post(url, json=data, headers=headers)
|
response = requests.post(url, json=data, headers=headers)
|
||||||
print(response)
|
print(response)
|
||||||
return HttpResponse('')
|
return HttpResponse('')
|
||||||
Reference in New Issue
Block a user