Skip to content

Commit f78c7f1

Browse files
Fix service name building
1 parent ccdee05 commit f78c7f1

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tasks/collect_info_org.yml

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

3838
- name: Build service name
3939
set_fact:
40-
runner_service: "actions.runner.{{ (github_owner | default(github_account))[:45] }}.{{ runner_name[:11] }}.service"
40+
runner_service: "actions.runner.{{ ([( github_owner | default(github_account))[:45], runner_name] | join('.'))[:65] }}.service"
4141
when: service_name is not defined
4242
tags:
4343
- install

tasks/collect_info_repo.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,9 @@
3535
- install
3636
- uninstall
3737

38-
- name: Combine Github account and repo names
39-
set_fact:
40-
svc_name: "{{ github_owner | default(github_account) }}-{{ github_repo }}"
41-
tags:
42-
- install
43-
- uninstall
44-
4538
- name: Build service name
4639
set_fact:
47-
runner_service: "actions.runner.{{ svc_name[:45] }}.{{ runner_name }}.service"
40+
runner_service: "actions.runner.{{ ([([(github_owner | default(github_account)), github_repo ] | join('-'))[:45], runner_name] | join('.'))[:65] }}.service"
4841
when: service_name is not defined
4942
tags:
5043
- install

0 commit comments

Comments
 (0)