Git Product home page Git Product logo

create-other-repo-branch-action's Introduction

Create Other Repo Branch Action

Public workflows that use this action. Action test on Ubuntu Action test on MacOS Action test on Windows

title

Github Action to create a new branch on another repository ๐Ÿ†•๐Ÿš€


๐Ÿ“š Usage

โš™๏ธ How does the action work?

โš ๏ธ Don't use this action to create a branch on the same repository! To do so, other actions on the marketplace are more efficient. You can also do it with the actions/checkout and git commands.

โ™ป๏ธ Scenarios

Creating new branch on another repository using default branch as reference

    steps:
      - uses: GuillaumeFalourd/[email protected]
        with:
          repository_owner: GuillaumeFalourd
          repository_name: poc-github-actions
          new_branch_name: release-1.2.3
          access_token: ${{ secrets.ACCESS_TOKEN}}

Creating new branch on another repository using a specific branch as reference

    steps:
      - uses: GuillaumeFalourd/[email protected]
        with:
          repository_owner: GuillaumeFalourd
          repository_name: poc-github-actions
          new_branch_name: release-1.2.3
          new_branch_ref: release-candidate
          access_token: ${{ secrets.ACCESS_TOKEN}}

โ–ถ๏ธ Action Inputs

Field Mandatory Observation
repository_owner YES Repository Owner
e.g: octocat
repository_name YES Repository Name
e.g: my-repo-name
new_branch_name YES New branch name created on other repository
e.g: release-*.*.*
new_branch_ref NO Reference to create the new branch name on other repository
e.g: release-candidate (the default branch is used if not informed)
access_token NO A PAT that has access to the repository (if necessary). Note: this should not be combined with ssh_deploy_key.
ignore_branch_exists NO This (boolean) field will gracefully skip branch creation if the requested branch already exists
e.g: true
ssh_deploy_key NO A Deploy Key that has been configured to allow access from the source to destination repository. (if necessary) Note: this should not be combined with access_token.
git_user_name NO Specify the user.name to set in the git config
git_user_email NO Specify the user.email to set in the git config

๐Ÿค Contributing

โ˜ž Guidelines

(Made with contributors-img)

๐Ÿ… Licensed

โ˜ž This repository uses the Apache License 2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.