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
21
21
hide_sensitive_logs : yes
22
22
23
23
# 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"
25
28
26
29
# Personal Access Token for your GitHub account
27
30
access_token : " {{ lookup('env', 'PERSONAL_ACCESS_TOKEN') }}"
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Get registration token (RUN ONCE)
3
3
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"
5
5
headers :
6
6
Authorization : " token {{ access_token }}"
7
7
Accept : " application/vnd.github.v3+json"
16
16
17
17
- name : Check currently registered runners (RUN ONCE)
18
18
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"
20
20
headers :
21
21
Authorization : " token {{ access_token }}"
22
22
Accept : " application/vnd.github.v3+json"
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Get registration token (RUN ONCE)
3
3
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"
5
5
headers :
6
6
Authorization : " token {{ access_token }}"
7
7
Accept : " application/vnd.github.v3+json"
16
16
17
17
- name : Check currently registered runners (RUN ONCE)
18
18
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"
20
20
headers :
21
21
Authorization : " token {{ access_token }}"
22
22
Accept : " application/vnd.github.v3+json"
47
47
runner_service : " actions.runner.{{ svc_name[:45] }}.{{ runner_name }}.service"
48
48
tags :
49
49
- install
50
- - uninstall
50
+ - uninstall
Original file line number Diff line number Diff line change 14
14
uri :
15
15
url : " https://api.github.com/repos/actions/runner/releases/latest"
16
16
headers :
17
- Authorization : " token {{ access_token }}"
18
- Accept : " application/vnd.github.v3+json"
17
+ Content-Type : " application/json"
19
18
method : GET
20
- force_basic_auth : yes
21
19
return_content : yes
22
20
status_code : 200
23
21
body_format : json
You can’t perform that action at this time.
0 commit comments