The reason the user is prompted for MFA again is that Actions are executed during each login, which includes both standard login and silent authentication requests or Refresh Token exchanges.
To ensure that your Action does not run on subsequent logins, you can enforce your action code to check for: