Skip to content

Feature: Ability to replace a branch instead of mergeΒ #37

@TSMMark

Description

@TSMMark

Thanks for this awesome gh action. Been using it for years now


I have a new workflow idea and I want to force push / replace another branch with the current branch. (rather than merge into)

It seems pretty close to the current API so I thought maybe it could just be another option, e.g.

- name: deploy/stage-a
  uses: devmasx/[email protected]
  with:
    label_name: 'deploy stage-a'
    from_branch: ${{ env.GITHUB_HEAD_REF_SLUG }}
    target_branch: 'deploy/stage-a'
    github_token: ${{ github.token }}
    replace: true

Thoughts on what it would take to implement this? Could it be accepted?

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