Commit c1684843 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Add appveyor.py

parent 4b7bbd96
#!/usr/bin/env python3
import os
import requests
webhook_key = os.environ['APPVEYOR_WEBHOOK_KEY']
branch = os.environ['CI_COMMIT_BRANCH']
url = f'https://ci.appveyor.com/api/git/webhook?id={webhook_key}'
ref = f'refs/heads/{branch}'
with open('appveyor.yml', 'r') as file:
yaml = file.read()
payload = {
'ref': ref,
'repository': {'name': 'Gajim'},
'config': yaml
}
req = requests.post(url, json=payload)
req.raise_for_status()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment