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 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
You can’t perform that action at this time.
0 commit comments