forked from aormsby/Fork-Sync-With-Upstream-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
72 lines (57 loc) · 2.04 KB
/
action.yaml
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
68
69
70
71
72
name: 'Sync-Fork-action'
author: 'Xuemomo'
description: 'Automatically updates fork if new commits from upstream repo'
branding:
icon: refresh-ccw
color: orange
inputs:
github_token:
description: 'Token for accessing the remote repo with authentication'
required: false
upstream_repository:
description: 'Upstream repository, e.g. => aormsby/Fork-Sync-With-Upstream-action'
required: true
upstream_branch:
description: 'Branch to sync from, e.g. => main, master, dev'
required: true
target_branch:
description: 'Branch to push to, e.g. => main, master, prod'
required: true
git_checkout_args:
description: 'Any extra args to pass to `git checkout` like --recurse-submodules (only used when current branch is not target_branch), default = ""'
required: false
default: ''
git_fetch_args:
description: 'Any extra args to pass to `git fetch` like --recurse-submodules, default = ""'
required: false
default: ''
git_log_format_args:
description: 'How to print the list of new commits, default = --pretty=oneline'
required: false
default: '--pretty=oneline'
git_pull_args:
description: 'Any extra args to pass to `git push` like --ff-only or --tags, default = ""'
required: false
default: ''
git_push_args:
description: 'Any extra args to pass to `git push` like --force, default = ""'
required: false
default: ''
git_user:
description: 'Git user credentials for sigining commit (set to "null" for no credential changes)'
required: false
default: 'Action - Fork Sync'
git_email:
description: 'Git email credentials for sigining commit (set to "null" for no credential changes)'
required: false
default: '[email protected]'
git_pull_rebase_config:
description: 'Git config for "pull.rebase" (standard default to false, set to "null" for no config)'
required: false
default: 'false'
outputs:
has_new_commits:
description: 'true when new commits were included in this sync'
runs:
using: 'node12'
main: 'main.js'