You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Sync branches
v1
GitHub Action to sync one branch when another is updated.
Required The token to be used for creating the pull request. Can be set to the one given for the workflow or another user.
Required The branch you want to make the pull request from.
Required The branch you want to make the pull request to.
What you would like as the title of the pull request.
Default: sync: {FROM_BRANCH} to {TO_BRANCH}
What you would like in the body of the pull request.
Default: sync-branches: New code has just landed in {FROM_BRANCH} so let's bring {TO_BRANCH} up to speed!
name: Sync
on:
push:
branches:
- master
jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Opening pull request
id: pull
uses: tretuna/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "master"
TO_BRANCH: "develop"