diff --git a/.github/scripts/dispatcher.py b/.github/scripts/dispatcher.py deleted file mode 100644 index fb159b85c..000000000 --- a/.github/scripts/dispatcher.py +++ /dev/null @@ -1,28 +0,0 @@ -import requests -import os -import json - -branch = os.getenv('BRANCH', '') -environment = os.getenv('ENVIRONMENT', '') -action = os.getenv('ACTION', '') -key = os.getenv('ACTIONS_KEY', '') - -data = json.dumps({ - "event_type": action, - "client_payload": { - "branch": branch - "environment" : environment - }, -}) -print(data) - -response = requests.post( - 'https://api.github.com/repos/dvsa/cvs-tf-vtm/dispatches', - headers={ - 'Accept': 'application/vnd.github.everest-preview+json', - 'Authorization': 'Bearer {k}'.format(k=key) - }, - data=data -).json - -print(response)