Skip to content

Commit 08dc43a

Browse files
Create action.yml
1 parent 1de6aee commit 08dc43a

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

action.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Push directory to another repository directory
2+
description: >-
3+
Useful to push files to another repository to be used, for example, via github
4+
pages
5+
inputs:
6+
source-before-directory:
7+
description: Source before directory from the origin directory
8+
required: false
9+
source-directory:
10+
description: Source directory from the origin directory
11+
required: true
12+
destination-github-username:
13+
description: Name of the destination username/organization
14+
required: true
15+
destination-repository-name:
16+
description: Destination repository
17+
required: true
18+
user-email:
19+
description: Email for the git commit
20+
required: true
21+
github-server:
22+
description: 'Github server'
23+
default: 'github.com'
24+
required: false
25+
user-name:
26+
description: >-
27+
[Optional] Name for the git commit. Defaults to the destination
28+
username/organization name
29+
required: false
30+
default: ''
31+
destination-repository-username:
32+
description: '[Optional] Username/organization for the destination repository'
33+
required: false
34+
default: ''
35+
target-branch:
36+
description: >-
37+
[Optional] set target branch name for the destination repository. Defaults
38+
to "main" for historical reasons
39+
default: main
40+
required: false
41+
commit-message:
42+
description: >-
43+
[Optional] commit message for the output repository. ORIGIN_COMMIT is
44+
replaced by the URL@commit in the origin repo
45+
default: Update from ORIGIN_COMMIT
46+
required: false
47+
target-directory:
48+
description: '[Optional] The directory to wipe and replace in the target repository'
49+
default: ''
50+
required: false
51+
52+
runs:
53+
using: docker
54+
image: Dockerfile
55+
args:
56+
- '${{ inputs.source-before-directory }}'
57+
- '${{ inputs.source-directory }}'
58+
- '${{ inputs.destination-github-username }}'
59+
- '${{ inputs.destination-repository-name }}'
60+
- '${{ inputs.github-server }}'
61+
- '${{ inputs.user-email }}'
62+
- '${{ inputs.user-name }}'
63+
- '${{ inputs.destination-repository-username }}'
64+
- '${{ inputs.target-branch }}'
65+
- '${{ inputs.commit-message }}'
66+
- '${{ inputs.target-directory }}'
67+
branding:
68+
icon: git-commit
69+
color: green

0 commit comments

Comments
 (0)