-
Notifications
You must be signed in to change notification settings - Fork 73
/
action.yaml
86 lines (68 loc) · 2.72 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: 'Upstream Sync'
author: 'Adam Ormsby (@aormsby)'
description: 'Automatically updates a target branch with new commits from an upstream repo, great for forks or parallel projects'
branding:
icon: refresh-ccw
color: orange
inputs:
target_sync_branch:
description: 'Branch receiving updates from the upstream repo, e.g. => main, master, prod'
required: true
target_repo_token:
description: 'Input for passing secrets.GITHUB_TOKEN when disabling persistent auth in the checkout step'
required: true
upstream_repo_access_token:
description: 'Token for accessing the remote repo through HTTPS authentication'
required: false
upstream_sync_repo:
description: 'Upstream repository, e.g. => aormsby/Fork-Sync-With-Upstream-action'
required: true
upstream_sync_branch:
description: 'Branch to sync from, e.g. => main, master, dev'
required: true
target_branch_checkout_args:
description: 'Any extra args to pass to `git checkout` on the source branch, e.g. --recurse-submodules :: default = ""'
required: false
default: ''
git_log_format_args:
description: 'Args to print the list of new commits from upstream :: default = --pretty=oneline'
required: false
default: '--pretty=oneline'
upstream_pull_args:
description: 'Git args passed when running `git pull` against the upstream repo, e.g. --ff-only or --tags :: default = ""'
required: false
default: ''
target_branch_push_args:
description: 'Git args passed when running `git push` to apply changes to the source repo, e.g. --force :: default = ""'
required: false
default: ''
git_config_user:
description: 'Git user credentials for sigining commit, (set to "null" for no config)'
required: true
default: 'GH Action - Upstream Sync'
git_config_email:
description: 'Git email credentials for sigining commit (set to "null" for no config)'
required: true
default: '[email protected]'
git_config_pull_rebase:
description: 'Git config for "pull.rebase" settings, usually recommend false for this action (set to "null" for no config)'
required: true
default: 'false'
test_mode:
description: If set to 'true', runs verification test on all inputs and any testable actions that use them
required: true
default: 'false'
host_domain:
description: 'Domain name to be used in upstream repo URL.'
required: true
default: 'github.com'
shallow_since:
description: 'Length of time used when fetching shallow repo data, should match how often you perform a sync'
required: true
default: '1 month ago'
outputs:
has_new_commits:
description: 'true when new commits were included in this sync'
runs:
using: 'node20'
main: 'main.js'