diff --git a/roles/sign-artifacts/tasks/main.yaml b/roles/sign-artifacts/tasks/main.yaml index 203ae84e8..a84376183 100644 --- a/roles/sign-artifacts/tasks/main.yaml +++ b/roles/sign-artifacts/tasks/main.yaml @@ -23,7 +23,7 @@ - name: Sign artifacts command: "gpg --homedir {{ gnupg_tmpdir.path }} --armor --detach-sign {{ item.path }}" with_items: "{{ artifacts.files }}" - when: artifacts.matched|bool + when: artifacts.matched > 0 - name: Delete keyring directory file: