Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TSMMark opened this issue Jan 27, 2023 · 1 comment
Open

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

TSMMark opened this issue Jan 27, 2023 · 1 comment

Comments

@TSMMark
Copy link

TSMMark commented Jan 27, 2023

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?

@shadoath
Copy link

shadoath commented Feb 7, 2023

Or can there be a force option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants