Skip to content

Commit fde769a

Browse files
fix: query parameter instead of body parameter
1 parent 1b1a6d8 commit fde769a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tasks/collect_info.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,18 @@
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 }}"
36+
url: "{{ github_full_api_url }}{{ '?' if '?' not in github_full_api_url else '&' }}per_page={{ github_api_runners_per_page }}"
3737
headers:
3838
Authorization: "token {{ access_token }}"
3939
Accept: "application/vnd.github.v3+json"
4040
method: GET
41-
body_format: form-urlencoded
42-
body:
43-
per_page: "{{ github_api_runners_per_page }}"
4441
status_code: 200
4542
force_basic_auth: true
4643
register: registered_runners
4744
delegate_to: localhost
4845
become: false
4946
run_once: "{{ all_runners_in_same_repo }}"
5047

51-
- name: Print registered runners (formatted JSON)
52-
ansible.builtin.debug:
53-
msg: "{{ registered_runners | to_nice_json }}"
54-
when: registered_runners is defined
55-
5648
- name: Get Runner User IDs
5749
ansible.builtin.command: id -u "{{ runner_user }}"
5850
changed_when: false

0 commit comments

Comments
 (0)