generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
questionFurther information is requested or the issue is a questionFurther information is requested or the issue is a question
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requested or the issue is a questionFurther information is requested or the issue is a question