forked from tarunwadhwa-paypay/files-sync-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
69 lines (69 loc) · 2.89 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
68
69
name: Files Sync Action
author: Adrian Jost
branding:
color: green
icon: copy
description: Copies files from the action's environment (or any other repo) to many other repos.
inputs:
COMMIT_MESSAGE:
description: |
The commit message that will be used to commit the changed files. Check the README for all interpolation options.
required: false
DRY_RUN:
description: |
Run everything except for the copying, removing and commiting functionality.
required: false
FILE_PATTERNS:
description: |
New line deliminated regex expressions to select files from the source repository. All filpaths start with the repos fullname without a leading slash. The delimiter between path segments is a forward slash.
required: true
GITHUB_TOKEN:
description: Token to use to get repos and write secrets
required: true
GITHUB_SERVER:
description: |
Specify a GitHub Server other than github.com (for GitHub Enterprise deployment support)
required: false
GIT_EMAIL:
description: |
The e-mail address used to commit the synced files. Defaults to [email protected]
required: false
GIT_USERNAME:
description: |
The username used to commit the synced files. Defaults to $GITHUB_ACTOR
required: false
SKIP_DELETE:
description: |
Will omit all delete operations for matching files present in `TARGET_REPO` but not existant in `SRC_REPO` if set to `true`. Defaults to `false`.
required: false
SKIP_REPLACE:
description: |
Will omit all write operations for matching files present in `SRC_REPO` and `TARGET_REPO` if set to `true`. Defaults to `false`.
required: false
SKIP_CLEANUP:
description: |
If set to true or 1, the cleanup step to remove the temporary workding directory at the end will be skipped. Usefull for debugging purposes.
required: false
SRC_REPO:
description: |
Repo from where files should be synced from. Defaults to $GITHUB_REPOSITORY. A custom branch can be defined by adding the branchname after a colon behind the SRC_REPO. `repoSlug` or `repoSlug:branchName`
required: false
TARGET_REPOS:
description: |
New line deliminated list of repositories. Repositires are limited to those in which the token user is an owner or collaborator. A custom branch can be defined for each repo by adding the branchname after a colon behind the repoSlug. `repoSlug` or `repoSlug:branchName`
required: true
TMPDIR:
description: |
The working directory where all sync operations will be done. Defaults to `tmp-${Date.now().toString()}`
required: false
SRC_ROOT:
description: |
Prepends this to all filepaths in the source repository. Defaults to `/`.
required: false
TARGET_ROOT:
description: |
Prepends this to all filepaths in the target repository. Defaults to `/`.
required: false
runs:
main: dist/index.js
using: node12