I have a "QA" stage that is deploying a package and after deployment I have a post-deployment approval. I only want to notify the "UAT Post-Deployment Approvers" group when the package is a Release package. I use GitVersion and Git Tags to tag a git commit. The Build Pipeline will automatically build the source code with the Git Tag event because of the branch filter "refs/tags/v*" that I've added. I have also used Artifact Filters in the Release Pipeline before on the Pre-Approval side to prevent entry and triggering of the Pre-Approvers notification to look for "refs/tags/v*", but this time I want to filter on the Post-Approval side.
Is there a way to filter AFTER a successful deployment, but BEFORE a Post-Approval so that the stage doesn't appear as a failure? Why? Because the deployment was successful and now I want the Release Pipeline to stop and not go any further. I don't want to ask for a Post-Deployment Approval. The Gate check that I currently have (Azure Function) will return a failure and thus will fail the complete Stage (what I don't want) and then not ask for Post-Deployment Approval (which I do want). OR is there a way to set the Stage to success after a failed Gate Check? Or, maybe set a Jobless Agent step to stop processing?