Added workflow to generate PR for syncing branches from "main" to "2". #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Branches | ||
on: | ||
push: | ||
branches: | ||
- main | ||
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: "main" | ||
TO_BRANCH: "2" | ||
PULL_REQUEST_TITLE: "Sync from branch {FROM_BRANCH} to branch {TO_BRANCH}" | ||
PULL_REQUEST_BODY: "Migrating change from branch {FROM_BRANCH} to branch {TO_BRANCH}" |