From 4f34011d0a5795036f3b9ca4c39974459ab34379 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Fri, 13 Dec 2024 16:49:35 +0100 Subject: [PATCH] Handle empty release list --- ansible/roles/source-repo-sync/templates/upstream-sync.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/source-repo-sync/templates/upstream-sync.jinja b/ansible/roles/source-repo-sync/templates/upstream-sync.jinja index 077493cf..258fa54d 100644 --- a/ansible/roles/source-repo-sync/templates/upstream-sync.jinja +++ b/ansible/roles/source-repo-sync/templates/upstream-sync.jinja @@ -7,6 +7,7 @@ name: Upstream Sync permissions: contents: write pull-requests: write +{% if repository_manifest.releases %} jobs: {% for release in repository_manifest.releases %} synchronise-{{ release | replace(".", "-") }}: @@ -15,3 +16,6 @@ jobs: with: release_series: {{ release }} {% endfor %} +{% else %} +jobs: {} +{% endif %}