forked from andreaslohre/commit-with-deploy-key
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
54 lines (54 loc) · 1.64 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: 'Commit with deploy key'
description: 'Commit to another repository using a deploy key'
branding:
icon: git-commit
color: green
inputs:
source:
description: 'The file/directory to commit'
required: true
deploy_key:
description: 'Private SSH key. Public key must be added to the destination repostitory as a deploy key with push access'
required: true
destination_repo:
description: 'Git repository to push changes to'
required: true
destination_folder:
description: 'Directory in destination repo to push changes to'
required: false
default: '.'
destination_branch:
description: 'Branch in destination repo to push changes to (default `main`)'
required: false
default: 'main'
delete_destination:
description: 'Delete destination directory contents before copy? (default `false`)'
required: false
default: false
git_username:
description: 'Git username'
required: false
default: ${{ github.actor }}
git_email:
description: 'Git email address'
required: false
default: ${{ github.actor }}
commit_message:
description: 'Commit message'
required: false
default: "${{ github.job }} from https://github.com/${{ github.repository }}/commit/${{ github.sha }}"
outputs:
commit_hash:
description: 'The SHA hash of the generated commit'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.source }}
- ${{ inputs.destination_repo }}
- ${{ inputs.destination_folder }}
- ${{ inputs.delete_destination }}
- ${{ inputs.deploy_key }}
- ${{ inputs.git_username }}
- ${{ inputs.git_email }}
- ${{ inputs.commit_message }}