Skip to content

Deployment protection rules for issue comment trigger #388

Open
@EResman

Description

@EResman

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested or the issue is a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions