According to Aquinas, what defines a “good” action?

Questions

Accоrding tо Aquinаs, whаt defines а "gоod" action?