Avoid duplication in PR slow CI model list (#30634)

update

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar 2024-05-03 18:19:30 +02:00 committed by GitHub
parent deb7605a2a
commit 91d155ea92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,4 +142,4 @@ if __name__ == "__main__":
new_model = get_new_model() new_model = get_new_model()
specified_models = get_models(args.commit_message) specified_models = get_models(args.commit_message)
models = ([] if new_model == "" else [new_model]) + specified_models models = ([] if new_model == "" else [new_model]) + specified_models
print(models) print(sorted(set(models)))