From b33602d7eeeb2a40f759169edd7166721e3096c7 Mon Sep 17 00:00:00 2001 From: "Gavin Chappell (gchappel)" Date: Tue, 2 Sep 2025 12:36:41 +0100 Subject: [PATCH] proposed fix for #238 --- tasks/collect_info.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/collect_info.yml b/tasks/collect_info.yml index 89cbd7a..aa90024 100644 --- a/tasks/collect_info.yml +++ b/tasks/collect_info.yml @@ -33,13 +33,16 @@ - name: "Check currently registered runners for repo {{ '(RUN ONCE)' if all_runners_in_same_repo else '' }}" ansible.builtin.uri: - url: "{{ github_full_api_url }}{{ '?' if '?' not in github_full_api_url else '&' }}per_page={{ github_api_runners_per_page }}" + url: "{{ github_full_api_url }}?{{ query_params | urlencode }}" headers: Authorization: "token {{ access_token }}" Accept: "application/vnd.github.v3+json" method: GET status_code: 200 force_basic_auth: true + vars: + query_params: + per_page: "{{ github_api_runners_per_page }}" register: registered_runners delegate_to: localhost become: false