Skip to content

Commit

Permalink
docs: add README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
ttionya committed Jun 2, 2020
1 parent 467c4b1 commit b74cfd1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
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

0 comments on commit b74cfd1

Please sign in to comment.