forked from dabreadman/sync-upstream-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
52 lines (49 loc) · 1.34 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 with your current repository
description: Syncs and merges your current repository with the upstream repository. Fork of https://github.com/mheene/sync-upstream-repo.
author: Dabreadman
inputs:
upstream_repo:
description: URL of gitHub public upstream repo
required: true
upstream_branch:
description: Branch to merge from upstream (defaults to downstream branch)
required: false
default: "main"
downstream_branch:
description: Branch to merge into downstream
required: false
default: ""
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-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: "blue"