-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Repository Sync Hub | ||
|
||
A GitHub Actions for sync current repository to other hub. | ||
|
||
## Features | ||
|
||
- Sync branches and tags to other repository (GitHub, GitLab, Gitee, etc.) | ||
- Automatic delete branches and tags that is deleted | ||
|
||
## Usage | ||
|
||
Be sure to run the [actions/checkout](https://github.com/actions/checkout) in a step before this action. | ||
|
||
```yml | ||
# File .github/workflows/sync.yml | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ttionya/Repository-Sync-Hub@v1 | ||
with: | ||
# Sync to target repository full clone URL (SSH Only) | ||
target_repository: '[email protected]:ttionya/Repository-Sync-Hub-Test.git' | ||
# SSH key used to authenticate with git operations (optional) | ||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
``` | ||
More usage please see [sample workflows](/.github/workflows/test.yml). | ||
## Thanks | ||
Inspired by the following actions which may be more suitable for your workflow. | ||
- [wei/git-sync](https://github.com/wei/git-sync) | ||
- [net-engine/github-repository-sync-action](https://github.com/net-engine/github-repository-sync-action) | ||
## License | ||
MIT |