From 7e1f484aeeacf888a1096eed8cae22f08e015a99 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Fri, 1 May 2020 12:53:44 +0200 Subject: [PATCH] Base time on first letter only, for roles of 1 character.. --- templates/galaxy.yml.j2 | 2 +- templates/molecule-action.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/galaxy.yml.j2 b/templates/galaxy.yml.j2 index d32c7c6..4229fac 100644 --- a/templates/galaxy.yml.j2 +++ b/templates/galaxy.yml.j2 @@ -8,7 +8,7 @@ on: tags: - '*' schedule: - - cron: '{{ letter_minute_mapping[role_name[2]] }} {{ letter_hour_mapping[role_name[2]] }} {{ letter_day_mapping[role_name[:1]] + 1 }} * *' + - cron: '{{ letter_minute_mapping[role_name[0]] }} {{ letter_hour_mapping[role_name[0]] }} {{ letter_day_mapping[role_name[0]] }} * *' jobs: release: diff --git a/templates/molecule-action.yml.j2 b/templates/molecule-action.yml.j2 index c1c45c8..eab8054 100644 --- a/templates/molecule-action.yml.j2 +++ b/templates/molecule-action.yml.j2 @@ -9,7 +9,7 @@ on: - '*' pull_request: schedule: - - cron: '{{ letter_minute_mapping[role_name[2]] }} {{ letter_hour_mapping[role_name[2]] }} {{ letter_day_mapping[role_name[:1]] + 1 }} * *' + - cron: '{{ letter_minute_mapping[role_name[0]] }} {{ letter_hour_mapping[role_name[0]] }} {{ letter_day_mapping[role_name[0]] }} * *' jobs: lint: