-
Notifications
You must be signed in to change notification settings - Fork 124
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
3 changed files
with
41 additions
and
16 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
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
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,32 @@ | ||
name: Git Sync Action | ||
author: Wei He <github@weispot.com> | ||
description: 🔃 Sync between two independent repositories | ||
branding: | ||
icon: 'git-branch' | ||
color: 'gray-dark' | ||
inputs: | ||
source_repo: | ||
description: GitHub repo slug or full clone url | ||
required: true | ||
source_branch: | ||
description: Branch name to sync from | ||
required: true | ||
destination_repo: | ||
description: GitHub repo slug or full clone url | ||
required: true | ||
destination_branch: | ||
description: Branch name to sync to | ||
required: true | ||
ssh_private_key: | ||
description: SSH key used to authenticate with git clone urls provided (optional if public or https clone url with authentication) | ||
required: false | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
env: | ||
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }} | ||
args: | ||
- ${{ inputs.source_repo }} | ||
- ${{ inputs.source_branch }} | ||
- ${{ inputs.destination_repo }} | ||
- ${{ inputs.destination_branch }} |