diff --git a/scripts/self-update.yml b/scripts/self-update.yml index b9975d66..1ea572fa 100644 --- a/scripts/self-update.yml +++ b/scripts/self-update.yml @@ -52,4 +52,4 @@ # Run the migrations only when the version of CIKit has grown. - include_tasks: tasks/migrations/run.yml # A new version of CIKit is greater than current. - when: cikit_version | version_compare(cikit_current_version, 'gt') + when: cikit_version is version_compare(cikit_current_version, 'gt') diff --git a/scripts/tasks/migrations/run.yml b/scripts/tasks/migrations/run.yml index 2f947df1..57695256 100644 --- a/scripts/tasks/migrations/run.yml +++ b/scripts/tasks/migrations/run.yml @@ -13,4 +13,4 @@ with_items: "{{ cikit_migrations }}" # This file runs only if a new version of the package is greater than current. This # means we have to run only those tasks, which were added only after the current version. - when: "item | version_compare(cikit_current_version, 'gt')" + when: "item is version_compare(cikit_current_version, 'gt')"