From: alex Date: Sat, 25 May 2024 12:37:20 +0000 (+0200) Subject: Exclude Dependabot runs X-Git-Tag: 20241020-emacs~175 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=5504d9f005af0f2340a04fe0c5876100f5d4d733;p=alex.git Exclude Dependabot runs --- diff --git a/personal_infra/playbooks/roles/deploy_ragent/files/get.py b/personal_infra/playbooks/roles/deploy_ragent/files/get.py index d0a7861..6468f13 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'))