This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
54 lines (52 loc) · 2.11 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
name: "External repo/wiki sync action"
description: "Upload files/binaries recursively to different GitHub repositories or wikis. It wraps around the rsync command."
inputs:
source-directory:
description: "Source directory"
required: true
include-patterns:
description: "Patterns which will be exclusively synced. Use spaces in quotes to separate multiple patterns."
exclude-patterns:
description: "Patterns which will be exluded. Use spaces in quotes to separate multiple patterns."
required: false
repository:
description: "Repo"
required: false
user:
description: "Set user name for action bot"
required: false
mail:
description: "Set email address for action bot"
required: false
commit-message:
description: "Commit message for action bot"
required: false
dry-run:
description: "If non-empty don't push to repo. Show the new synced state of the pulled repo at the end instead."
required: false
branch:
description: "Set which branch should be checked out. It will never create a new branch! Default is master"
required: false
delete-missing:
description: "Delete all files in repsitory that are not present in the source dir. Please be careful when using this option!"
required: false
outputs:
sync_result:
description: "Folder structure of defined repo after syncing. Mainly used for testing."
runs:
using: "docker"
image: "Dockerfile"
args:
- --source-dir=${{ inputs.source-directory }}
- --include-patterns=${{ inputs.include-patterns }}
- --exclude-patterns=${{ inputs.exclude-patterns }}
- --repository=${{ inputs.repository }}
- --user=${{ inputs.user }}
- --mail=${{ inputs.mail }}
- --commit-message=${{ inputs.commit-message }}
- --dry-run=${{ inputs.dry-run }}
- --branch=${{ inputs.branch }}
- --delete-missing=${{ inputs.delete-missing }}
branding:
icon: "chevrons-up"
color: "black"