Skip to content

Commit b33602d

Browse files
committed
proposed fix for #238
1 parent ed4b47a commit b33602d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/collect_info.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@
3333

3434
- name: "Check currently registered runners for repo {{ '(RUN ONCE)' if all_runners_in_same_repo else '' }}"
3535
ansible.builtin.uri:
36-
url: "{{ github_full_api_url }}{{ '?' if '?' not in github_full_api_url else '&' }}per_page={{ github_api_runners_per_page }}"
36+
url: "{{ github_full_api_url }}?{{ query_params | urlencode }}"
3737
headers:
3838
Authorization: "token {{ access_token }}"
3939
Accept: "application/vnd.github.v3+json"
4040
method: GET
4141
status_code: 200
4242
force_basic_auth: true
43+
vars:
44+
query_params:
45+
per_page: "{{ github_api_runners_per_page }}"
4346
register: registered_runners
4447
delegate_to: localhost
4548
become: false

0 commit comments

Comments
 (0)