Automatically synchronize content between repositories by creating a pull request when changes are detected.
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