Canary: don't fail build on PKG_INVALID_VERSION_NUMBER error
This error is returned when the same version that is published is trying
to be uploaded, and thus shouldn't be treated as an actual failure. In
the future, we should try to avoid uploading the same version which is
uploaded, and even prevent the build from happening at all.
diff --git a/roles/cws-publish/tasks/main.yaml b/roles/cws-publish/tasks/main.yaml
index 7f37726..a22f531 100644
@@ -42,4 +42,4 @@
- - not (uploadcmd.rc == 0 or ('ITEM_NOT_UPDATABLE' in uploadcmd.stdout))
+ - "not (uploadcmd.rc == 0 or ('ITEM_NOT_UPDATABLE' in uploadcmd.stdout) or ('PKG_INVALID_VERSION_NUMBER') in uploadcmd.stdout)"