forked from dabreadman/sync-upstream-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
67 lines (64 loc) · 1.79 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Sync Upstream-Downstream
description: Syncs and merges provided downstream repo with the upstream repos. Fork of https://github.com/dabreadman/sync-upstream-repo.
author: dchourasia
inputs:
upstream_repo:
description: URL of upstream gitHub repo
required: true
upstream_branch:
description: Branch to merge from upstream (defaults to downstream branch)
required: false
default: "main"
downstream_repo:
description: URL of downstream gitHub repo
required: false
default: "GITHUB_REPOSITORY"
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: ""
push_tags:
description: Push tags from upstream repos downstream (use refspec, such as "refs/tags/*")
required: false
default: ""
spawn_logs:
description: Toggle to spawn `sync-upstream-repo` with time logs
required: true
default: false
ignore_files:
description: Comma separated list of globbing paths which needs to be ignored while merge
required: false
default: ""
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 }}
- ${{ inputs.downstream_repo }}
- ${{ inputs.ignore_files }}
- ${{ inputs.push_tags }}
branding:
icon: "git-merge"
color: "blue"