-
Notifications
You must be signed in to change notification settings - Fork 104
/
action.yml
31 lines (31 loc) · 902 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: GitHub Repo Sync
author: Wei He <[email protected]>
description: ⤵️ Sync current repository with remote
branding:
icon: 'git-branch'
color: 'gray-dark'
inputs:
source_repo:
description: GitHub public repo slug or full https clone url (with access_token if needed)
required: true
source_branch:
description: Branch name to sync from
required: true
destination_branch:
description: Branch name to sync to in this repo
required: true
github_token:
description: GitHub token secret
required: true
sync_tags:
description: Should tags also be synced
required: false
runs:
using: 'docker'
image: docker://ghcr.io/repo-sync/github-sync:v2.3.0
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
SYNC_TAGS: ${{ inputs.sync_tags }}
args:
- ${{ inputs.source_repo }}
- ${{ inputs.source_branch }}:${{ inputs.destination_branch }}