Skip to content

create a pull request in a primary repo whenever a change is synced to the bi-directional sync repo

Notifications You must be signed in to change notification settings

rossrdme/pr-repo-to-folder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

BiDi Sync Pull Request Action

Overview

Automatically synchronize content between repositories by creating a pull request when changes are detected.

Usage

name: Create Pull Request at primary repo on sync to BiDi repo or change in ReadMe UI

on:
  push:
    branches:
      - v1.0

jobs:
  sync-bidi:
    runs-on: ubuntu-latest
    steps:
      - name: BiDi Sync Pull Request
        uses: rossrdme/[email protected]
        with:
          bidi-sync-repo: yourusername/source-repo        # Required
          primary-repo: yourusername/target-repo          # Required
          primary-repo-folder: /docs                      # Required
          access-token: ${{ secrets.SYNC_PAT }}           # Required
          
          # Optional parameters below
          bidi-repo-folder: ''                            # Optional: defaults to root
          pr-base: main                                   # Optional: defaults to 'main'
          pr-branch: docs-sync                            # Optional: defaults to 'docs-sync'
          git-user-name: 'GitHub Actions Bot'             # Optional: custom git user name
          git-user-email: '[email protected]'            # Optional: custom git user email

About

create a pull request in a primary repo whenever a change is synced to the bi-directional sync repo

Resources

Stars

Watchers

Forks

Packages

No packages published