File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ reinstall_runner: no
2121hide_sensitive_logs : yes
2222
2323# GitHub address
24- github_server : " https://github.com"
24+ github_url : " https://github.com"
25+
26+ # GitHub API
27+ github_api_url : " https://api.github.com"
2528
2629# Personal Access Token for your GitHub account
2730access_token : " {{ lookup('env', 'PERSONAL_ACCESS_TOKEN') }}"
Original file line number Diff line number Diff line change 11---
22- name : Get registration token (RUN ONCE)
33 uri :
4- url : " https://api.github.com /orgs/{{ github_owner | default(github_account) }}/actions/runners/registration-token"
4+ url : " {{ github_api_url }} /orgs/{{ github_owner | default(github_account) }}/actions/runners/registration-token"
55 headers :
66 Authorization : " token {{ access_token }}"
77 Accept : " application/vnd.github.v3+json"
1616
1717- name : Check currently registered runners (RUN ONCE)
1818 uri :
19- url : " https://api.github.com /orgs/{{ github_owner | default(github_account) }}/actions/runners"
19+ url : " {{ github_api_url }} /orgs/{{ github_owner | default(github_account) }}/actions/runners"
2020 headers :
2121 Authorization : " token {{ access_token }}"
2222 Accept : " application/vnd.github.v3+json"
Original file line number Diff line number Diff line change 11---
22- name : Get registration token (RUN ONCE)
33 uri :
4- url : " https://api.github.com /repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners/registration-token"
4+ url : " {{ github_api_url }} /repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners/registration-token"
55 headers :
66 Authorization : " token {{ access_token }}"
77 Accept : " application/vnd.github.v3+json"
1616
1717- name : Check currently registered runners (RUN ONCE)
1818 uri :
19- url : " https://api.github.com /repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners"
19+ url : " {{ github_api_url }} /repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners"
2020 headers :
2121 Authorization : " token {{ access_token }}"
2222 Accept : " application/vnd.github.v3+json"
4747 runner_service : " actions.runner.{{ svc_name[:45] }}.{{ runner_name }}.service"
4848 tags :
4949 - install
50- - uninstall
50+ - uninstall
Original file line number Diff line number Diff line change 1414 uri :
1515 url : " https://api.github.com/repos/actions/runner/releases/latest"
1616 headers :
17- Authorization : " token {{ access_token }}"
18- Accept : " application/vnd.github.v3+json"
17+ Content-Type : " application/json"
1918 method : GET
20- force_basic_auth : yes
2119 return_content : yes
2220 status_code : 200
2321 body_format : json
You can’t perform that action at this time.
0 commit comments