Open
Description
Details
Hi,
Trying to use deployment protection rules in GitHub for setting restrictions on that you must have a branch named "release/*" for example to deploy to production. The problem is using environment when deploying in a PR with branch deploy you get the error:
Branch "main" is not allowed to deploy to dev due to environment protection rules.
This is because when triggering the workflow on issue_comment it runs on the main branch and therefore the deployment protection rule does not work.
Happen to know a solution to this or do we have to develop our own deployment protection in the workflow?