-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
47 lines (47 loc) · 1.69 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
name: "Push to repository"
description: "Useful to push files to another repository to be used, for example, via github pages"
inputs:
source-directory:
description: "Source directory from the origin directory"
required: true
destination-github-username:
description: "Name of the destination username/organization"
required: true
destination-repository-name:
description: "Destination repository"
required: true
user-email:
description: "Email for the git commit"
required: false
default: "github-actions[bot]@users.noreply.github.com"
user-name:
description: "[Optional] Name for the git commit. Defaults to the destination username/organization name"
required: false
default: "github-actions[bot]"
destination-repository-username:
description: "[Optional] Username/organization for the destination repository"
required: false
default: ""
target-branch:
description: '[Optional] set target branch name for the destination repository. Defaults to "master" for historical reasons'
default: "master"
required: false
commit-message:
description: "[Optional] commit message for the output repository. ORIGIN_COMMIT is replaced by the URL@commit in the origin repo"
default: "Update from ORIGIN_COMMIT"
required: false
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.source-directory }}
- ${{ inputs.destination-github-username }}
- ${{ inputs.destination-repository-name }}
- ${{ inputs.user-email }}
- ${{ inputs.user-name }}
- ${{ inputs.destination-repository-username }}
- ${{ inputs.target-branch }}
- ${{ inputs.commit-message }}
branding:
icon: "git-commit"
color: "green"