Skip to content

Swipoo Actions to keep secondary branches up to date with main.

Notifications You must be signed in to change notification settings

swipoo/action-merge-main-dev

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swipoo Merge Main into Dev Action

Merge production branch into development branch o push to production.

Inputs

prod_branch

Required Name of production branch. Default "main".

dev_branch

Required Name of development branch. Default "sandbox".

owner_username

Required Username of the owner (user or org) of the repo. Default "swipoo".

repo_name

Required Name of the repository.

gh_username

Required Username of the GitHub account. Must be authorized to push to the repository.

gh_email

Required Email of the GitHub account. Must be authorized to push to the repository.

gh_token

Required Personal access token of the GitHub account. Collected through the GitHub Secrets.

gh_actor

Required Actor of the GitHub account. Collected through GitHub ENV variables.

Example usage

- name: Swipoo Merge Main into Dev Action
  uses: swipoo/action-merge-main-dev@v1
  with:
    prod_branch: 'main-branch'
    dev_branch: 'dev-branch'
    owner_username: 'swipoo'
    repo_name: 'my-super-repo'
    gh_username: 'octocat'
    gh_email: '[email protected]'
    gh_token: ${{secrets.GITHUB_TOKEN}}
    gh_actor: $GITHUB_ACTOR