File tree 6 files changed +26
-4
lines changed
6 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 23
23
tag : " latest"
24
24
- os : " debian10"
25
25
tag : " latest"
26
- - os : " fedora33 "
26
+ - os : " fedora34 "
27
27
tag : " latest"
28
28
- os : " ubuntu18"
29
29
tag : " latest"
Original file line number Diff line number Diff line change
1
+ .cache
1
2
* .gz
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/pre-commit/pre-commit-hooks
3
+ rev : v4.0.1
4
+ hooks :
5
+ - id : check-yaml
6
+ args : [--allow-multiple-documents]
7
+ - id : end-of-file-fixer
8
+ - id : trailing-whitespace
Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ runner_name: "{{ ansible_hostname }}"
85
85
# Labels to apply to the runner
86
86
runner_labels : []
87
87
88
+ # GitHub Actions Runner repository (change it if you want to use custom Actions Runner fork)
89
+ runner_download_repository : " actions/runner"
90
+
91
+ # Extra arguments to pass to `config.sh`
92
+ runner_extra_config_args : " "
93
+
88
94
# Custom service name when usign Github Enterprise server
89
95
# service_name: actions.runner._services.{{ runner_name }}.service
90
96
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ runner_name: "{{ ansible_hostname }}"
38
38
# Labels to apply to the runner
39
39
runner_labels : []
40
40
41
+ # GitHub Actions Runner repository (change it if you want to use custom Actions Runner fork)
42
+ runner_download_repository : " actions/runner"
43
+
44
+ # Extra arguments to pass to `config.sh`
45
+ runner_extra_config_args : " "
46
+
41
47
# Custom service name when usign Github Enterprise server
42
48
# service_name: actions.runner._services.{{ runner_name }}.service
43
49
Original file line number Diff line number Diff line change 11
11
12
12
- name : Find the latest runner version (RUN ONCE)
13
13
uri :
14
- url : " https://api.github.com/repos/actions/runner /releases/latest"
14
+ url : " https://api.github.com/repos/{{ runner_download_repository }} /releases/latest"
15
15
headers :
16
16
Content-Type : " application/json"
17
17
method : GET
54
54
55
55
- name : Download runner package version - "{{ runner_version }}" (RUN ONCE)
56
56
get_url :
57
- url : " https://github.com/actions/runner /releases/download/v{{ runner_version }}/\
57
+ url : " https://github.com/{{ runner_download_repository }} /releases/download/v{{ runner_version }}/\
58
58
actions-runner-linux-{{ github_actions_architecture }}-{{ runner_version }}.tar.gz"
59
59
dest : " {{ runner_pkg_tempdir }}/actions-runner-linux-{{ runner_version }}.tar.gz"
60
60
force : no
77
77
78
78
- name : Register runner (if new installation) for repo
79
79
command : " {{ runner_dir }}/./config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }}/{{ github_repo }} \
80
- --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended"
80
+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
81
+ {{ runner_extra_config_args }}"
81
82
args :
82
83
chdir : " {{ runner_dir }}"
83
84
become : yes
You can’t perform that action at this time.
0 commit comments