Skip to content

Commit fb28942

Browse files
committed
Use github_owner in collect_info_* tasks
1 parent f664f82 commit fb28942

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tasks/collect_info_org.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Get registration token (RUN ONCE)
33
uri:
4-
url: "https://api.github.com/orgs/{{ github_account }}/actions/runners/registration-token"
4+
url: "https://api.github.com/orgs/{{ github_owner | default(github_account) }}/actions/runners/registration-token"
55
headers:
66
Authorization: "token {{ access_token }}"
77
Accept: "application/vnd.github.v3+json"
@@ -16,7 +16,7 @@
1616

1717
- name: Check currently registered runners (RUN ONCE)
1818
uri:
19-
url: "https://api.github.com/orgs/{{ github_account }}/actions/runners"
19+
url: "https://api.github.com/orgs/{{ github_owner | default(github_account) }}/actions/runners"
2020
headers:
2121
Authorization: "token {{ access_token }}"
2222
Accept: "application/vnd.github.v3+json"
@@ -40,4 +40,4 @@
4040
runner_service: "actions.runner.{{ github_account[:45] }}.{{ runner_name }}.service"
4141
tags:
4242
- install
43-
- uninstall
43+
- uninstall

tasks/collect_info_repo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Get registration token (RUN ONCE)
33
uri:
4-
url: "https://api.github.com/repos/{{ github_account }}/{{ github_repo }}/actions/runners/registration-token"
4+
url: "https://api.github.com/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"
@@ -16,7 +16,7 @@
1616

1717
- name: Check currently registered runners (RUN ONCE)
1818
uri:
19-
url: "https://api.github.com/repos/{{ github_account }}/{{ github_repo }}/actions/runners"
19+
url: "https://api.github.com/repos/{{ github_owner | default(github_account) }}/{{ github_repo }}/actions/runners"
2020
headers:
2121
Authorization: "token {{ access_token }}"
2222
Accept: "application/vnd.github.v3+json"
@@ -47,4 +47,4 @@
4747
runner_service: "actions.runner.{{ svc_name[:45] }}.{{ runner_name }}.service"
4848
tags:
4949
- install
50-
- uninstall
50+
- uninstall

0 commit comments

Comments
 (0)