diff options
| -rwxr-xr-x | personal_infra/playbooks/roles/deploy_ragent/files/get.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/personal_infra/playbooks/roles/deploy_ragent/files/get.py b/personal_infra/playbooks/roles/deploy_ragent/files/get.py index d0a78618..6468f130 100755 --- a/personal_infra/playbooks/roles/deploy_ragent/files/get.py +++ b/personal_infra/playbooks/roles/deploy_ragent/files/get.py @@ -7,7 +7,7 @@ import urllib.request run_id = sys.argv[1] if run_id == "last": - runs = json.loads(urllib.request.urlopen("https://api.github.com/repos/alexpdp7/ragent/actions/runs?branch=master").read().decode('utf8')) + runs = json.loads(urllib.request.urlopen("https://api.github.com/repos/alexpdp7/ragent/actions/runs?branch=master&event=push").read().decode('utf8')) run_id = runs["workflow_runs"][0]["id"] run = json.loads(urllib.request.urlopen("https://api.github.com/repos/alexpdp7/ragent/actions/runs/%s" % run_id).read().decode('utf8')) |
