File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 33
33
34
34
- name : " Check currently registered runners for repo {{ '(RUN ONCE)' if all_runners_in_same_repo else '' }}"
35
35
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 }} "
37
37
headers :
38
38
Authorization : " token {{ access_token }}"
39
39
Accept : " application/vnd.github.v3+json"
40
40
method : GET
41
- body_format : form-urlencoded
42
- body :
43
- per_page : " {{ github_api_runners_per_page }}"
44
41
status_code : 200
45
42
force_basic_auth : true
46
43
register : registered_runners
47
44
delegate_to : localhost
48
45
become : false
49
46
run_once : " {{ all_runners_in_same_repo }}"
50
47
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
-
56
48
- name : Get Runner User IDs
57
49
ansible.builtin.command : id -u "{{ runner_user }}"
58
50
changed_when : false
You can’t perform that action at this time.
0 commit comments