-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
53 lines (49 loc) · 1.23 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Sync and merge upstream repository
description: sync and merge upstream repository and current repository.
author: Maximo
inputs:
upstream_repo:
description: Upstream repo URL (GitHub)
required: true
upstream_branch:
description: Upstream Branch (which repo to sync)
required: false
default: "main"
downstream_branch:
description: Downstream Branch (Current repo sync)
required: false
default: "main"
token:
description: GitHub Bot token
required: true
fetch_args:
description: Git fetch arguments
required: false
default: ""
merge_args:
description: Git merge arguments
required: false
default: ""
push_args:
description: Git push arguments
required: false
default: ""
spawn_logs:
description: Toggle to spawn `sync-merge-upstream-repo` with time logs
required: true
default: false
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.upstream_repo }}
- ${{ inputs.upstream_branch }}
- ${{ inputs.downstream_branch }}
- ${{ inputs.token }}
- ${{ inputs.fetch_args }}
- ${{ inputs.merge_args }}
- ${{ inputs.push_args }}
- ${{ inputs.spawn_logs }}
branding:
icon: "git-merge"
color: "purple"