How to add an icon to the fileactions menu

How to add a new icon to the fileactions menu?
I added a new fileaction to the fileactions menu of “Files” app with iconClass: ‘icon-newicon’. Then I added an icon newicon.svg to nextcloud/core/img/actions. And the newicon is not being rendered in the fileactions menu.