Actions matter. But they’re not to be judged individually. They’re to be judged as a series.
Just as a series of positive actions can be undermined by a series of negative actions, the same can occur in reverse. A series of negative actions can be undone by a series of positive actions.
And the more global your perspective on your series of actions, the truer your interpretation of “good” and “bad”.