Skip to content

Warn people about where this action will push to if not specified #24

@joelcoxokc

Description

@joelcoxokc

Please let people know that even if you run this workflow under a workflow_dispatch on a dev branch, if branch is not specified then it will push all dev code to your main branch.

We have four branches.
main -> staging -> qa -> dev

I ran this action on my dev branch... and did not specify the branch property. And it pushed all my dev code to our main production branch.

This could be very dangerous in many environments.

I personally think that the branch should not default to main, but should default to the branch that HEAD is on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions