This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 47
47
String $group = $github_actions_runner::group,
48
48
String $hostname = $::facts[' hostname' ],
49
49
String $instance_name = $title,
50
+ String $github_domain = $github_actions_runner::github_domain,
51
+ String $github_api = $github_actions_runner::github_api,
50
52
Optional[String] $http_proxy = $github_actions_runner::http_proxy,
51
53
Optional[String] $https_proxy = $github_actions_runner::https_proxy,
52
54
Optional[String] $no_proxy = $github_actions_runner::no_proxy,
53
55
Optional[Array[String]] $labels = undef ,
54
56
Optional[String] $repo_name = undef ,
55
57
Optional[String] $enterprise_name = $github_actions_runner::enterprise_name,
56
- String $github_domain = $github_actions_runner::github_domain,
57
- String $github_api = $github_actions_runner::github_api,
58
58
) {
59
59
60
60
if $labels {
70
70
} elsif $repo_name {
71
71
$token_url = " ${github_api} /repos/${org_name} /${repo_name} /actions/runners/registration-token"
72
72
$url = " ${github_domain} /${org_name} /${repo_name} "
73
- } else $org_name {
73
+ } else {
74
74
$token_url = $github_api ? {
75
75
' https://api.github.com' => " ${github_api} /repos/${org_name} /actions/runners/registration-token" ,
76
76
default => " ${github_api} /orgs/${org_name} /actions/runners/registration-token" ,
You can’t perform that action at this time.
0 commit comments