From 91e736091d8f7001fc0b6dc40ce23839049427c0 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 13 Dec 2023 16:04:39 +0000 Subject: [PATCH] upstream sync: Sort releases for deterministic workflows For some reason the most recent source repo sync workflow has created PRs with upstream sync workflow jobs in a random order. This is not good as they will keep changing over time. Sort the jobs based on the release name. --- ansible/roles/source-repo-sync/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/source-repo-sync/tasks/main.yml b/ansible/roles/source-repo-sync/tasks/main.yml index ed1e4660..7515bc54 100644 --- a/ansible/roles/source-repo-sync/tasks/main.yml +++ b/ansible/roles/source-repo-sync/tasks/main.yml @@ -18,7 +18,7 @@ name: '{{ item.key }}', releases: '{{ default_releases | difference(item.value.ignored_releases | default([])) | - union(item.value.additional_releases | default([])) }}', + union(item.value.additional_releases | default([])) | sort }}', workflows: { default_branch_only: '{{ openstack_workflows.default_branch_only | difference(item.value.workflows.ignored_workflows.default_branch_only | default([])) |