Skip to content

Commit dde9e23

Browse files
Change how to add labels
1 parent 642468d commit dde9e23

File tree

5 files changed

+6
-44
lines changed

5 files changed

+6
-44
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Please describe the tests that you ran to verify your changes.
1919

2020
## Destination branch
2121

22-
Create PR to merge your changes into `develop` branch
22+
Create a PR into `develop` branch

CONTRIBUTING.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ runner_org: no
3636
runner_name: "{{ ansible_hostname }}"
3737

3838
# Labels to apply to the runner. For examle "'label1','label2'"
39-
runner_labels: "''"
39+
runner_labels: []
4040

4141
# Custom service name when usign Github Enterprise server
4242
# service_name: actions.runner._services.{{ runner_name }}.service

molecule/default/converge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
- github_repo: ansible-github_actions_runner-testrepo
1010
- github_account: monolithprojects-testorg
1111
- runner_version: "latest"
12-
- runner_labels: "'test1','test2'"
12+
- runner_labels:
13+
- label1
14+
- label2
1315
roles:
1416
- robertdebock.epel
1517
- ansible-github_actions_runner

tasks/install_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
- name: Register runner (if new installation) for repo
7979
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 }} --unattended"
80+
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended"
8181
args:
8282
chdir: "{{ runner_dir }}"
8383
become: yes

0 commit comments

Comments
 (0)