diff options
Diffstat (limited to 'release.py')
-rw-r--r-- | release.py | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -83,18 +83,14 @@ def build_github_actions_wheels(token, version): session = requests.Session() response = session.post( - "https://api.github.com/repos/pyca/bcrypt/dispatches", + "https://api.github.com/repos/pyca/bcrypt/actions/workflows/" + "wheel-builder.yml/dispatches", headers={ "Content-Type": "application/json", - "Accept": "application/vnd.github.everest-preview+json", + "Accept": "application/vnd.github.v3+json", "Authorization": "token {}".format(token), }, - data=json.dumps( - { - "event_type": "wheel-builder", - "client_payload": {"BUILD_VERSION": version}, - } - ), + data=json.dumps({"ref": "master", "inputs": {"version": version}}), ) response.raise_for_status() @@ -103,7 +99,7 @@ def build_github_actions_wheels(token, version): response = session.get( ( "https://api.github.com/repos/pyca/bcrypt/actions/workflows/" - "wheel-builder.yml/runs?event=repository_dispatch" + "wheel-builder.yml/runs?event=workflow_dispatch" ), headers={ "Content-Type": "application/json", |