Added some debug output to the automated test profile.

This commit is contained in:
Anton Hvornum 2020-08-21 11:34:08 +00:00
parent 97696a8d02
commit 2b71ebd699
1 changed files with 4 additions and 1 deletions

View File

@ -35,8 +35,11 @@ with archinstall.Filesystem(harddrive, archinstall.GPT) as fs:
installation.add_AUR_support()
repo = git.Repo('./')
commit = repo.head.commit.hexsha[:7]
conditions = {"project" : "archinstall", "profile" : "52-54-00-12-34-56", "status" : "success", "commit" : repo.head.commit.hexsha[:7]}
print(f'Submitting {commit}: success')
conditions = {"project" : "archinstall", "profile" : "52-54-00-12-34-56", "status" : "success", "commit" : commit}
req = urllib.request.Request("https://archlinux.life/build/success",
data=json.dumps(conditions).encode('utf8'),
headers={'content-type': 'application/json'})