Skip to content

Commit

Permalink
Convert numeric releases to strings
Browse files Browse the repository at this point in the history
This avoids an issue where numeric release names such as 2023.1 don't
match the stringified release 2023.1, breaking our ignore_releases
rules.
  • Loading branch information
markgoddard committed Feb 2, 2024
1 parent 399395e commit 2bb4d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/source-repo-sync/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
{
name: '{{ item.key }}',
releases:
'{{ default_releases | difference(item.value.ignored_releases | default([])) |
union(item.value.additional_releases | default([])) | sort }}',
'{{ default_releases | map("string") | difference(item.value.ignored_releases | default([]) | map("string")) |
union(item.value.additional_releases | default([]) | map("string")) | sort }}',
workflows:
{ default_branch_only: '{{ openstack_workflows.default_branch_only |
difference(item.value.workflows.ignored_workflows.default_branch_only | default([])) |
Expand Down

0 comments on commit 2bb4d73

Please sign in to comment.