Currently, if this workflow is run multiple times or re-triggered for any reason, it will continuously add approvals to a pull request. This is messy and creates un-wanted noise on a pull request. This PR makes adjustments to the code so that if a PR is already approved by this Action, it will log that as the result and exit; without making duplicate approvals.
Prevent Duplicate Approvals
Currently, if this workflow is run multiple times or re-triggered for any reason, it will continuously add approvals to a pull request. This is messy and creates un-wanted noise on a pull request. This PR makes adjustments to the code so that if a PR is already approved by this Action, it will log that as the result and exit; without making duplicate approvals.