Skip to content

πŸ”ƒ A GitHub Action for syncing between two independent repositories using force push using GH App token

Notifications You must be signed in to change notification settings

morganschoen/git-sync-token

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Sync

A GitHub Action for syncing between two independent repositories using force push.

Features

Usage

Always make a full backup of your repo (git clone --mirror) before using this action.

GitHub Actions

# .github/workflows/git-sync.yml

on: push
jobs:
  git-sync:
    runs-on: ubuntu-latest
    steps:
      - name: git-sync
        uses: wei/git-sync@v3
        with:
          source_repo: "source_org/repository"
          source_branch: "main"
          destination_repo: "destination_org/repository"
          destination_branch: "main"
        env:
            GITHUB_APP_TOKEN_SOURCE: ${{ steps.get_workflow_token.outputs.token }}
            GITHUB_APP_TOKEN_DESTINATION: ${{ steps.get_workflow_token_prod.outputs.token }}

Author

Wei He github@weispot.com

License

MIT

About

πŸ”ƒ A GitHub Action for syncing between two independent repositories using force push using GH App token

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.7%
  • Dockerfile 13.3%