I think an action is only as good as its outcome, the intention of an act should not be overlooked as it does hold some importance, mostly toward how you look at the person doing said 'good' or 'bad' act, though there are many areas to approach this problem.
If we look at the language in itself, what the words actually mean, we will come to one sort of answer. Then if we look at the morality and perspective of what good and bad are we come to another sort of answer.
To then get the most accurate answer we would have to workout how those outcomes can be brought together. And each persons opinion will still vary.