Skip to content

GitHub Action for syncing between two independent repositories using **force push** to maintain a close collaboration between agencies and WP VIP.

Notifications You must be signed in to change notification settings

capgemini-macs/wpcomvip-git-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP VIP Git Sync

A GitHub Action for syncing between two independent repositories using force push to maintain a close collaboraiton between agencies and WP VIP.

Features

  • Sync branches for review and future merge from external to WP VIP GitHub repository
  • Sync protected WP VIP branches back to external GitHub repository
  • GitHub action can be triggered on a timer or on push

Usage

GitHub Actions

# File: .github/workflows/repo-sync.yml

on:
  push:
    branches:    
    - 'master'
    - 'develop'

jobs:
  repo-sync:
    runs-on: ubuntu-latest
    steps:
    - name: repo-sync
      uses: capgemini-macs/wpcomvip-git-sync@v0.1.4
      env:
        SOURCE_REPO: ""
        DESTINATION_REPO: ""
        BRANCH: ""
        SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

SSH_PRIVATE_KEY can be omitted if using authenticated HTTPS repo clone urls like https://username:access_token@github.com/username/repository.git.

Author

Based on [git-sync] by Wei He github@weispot.com Maintained by Capgemini MACS

License

MIT

About

GitHub Action for syncing between two independent repositories using **force push** to maintain a close collaboration between agencies and WP VIP.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published