Skip to content

Commit

Permalink
Handle empty release list
Browse files Browse the repository at this point in the history
  • Loading branch information
priteau committed Dec 13, 2024
1 parent 3292612 commit 4f34011
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/source-repo-sync/templates/upstream-sync.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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(".", "-") }}:
Expand All @@ -15,3 +16,6 @@ jobs:
with:
release_series: {{ release }}
{% endfor %}
{% else %}
jobs: {}
{% endif %}

0 comments on commit 4f34011

Please sign in to comment.