-
Notifications
You must be signed in to change notification settings - Fork 14
/
action.yml
44 lines (44 loc) · 1.29 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
name: 'GitOps GitHub Pull Request'
description: 'Create GitHub Pull Request with current changes'
inputs:
repo:
description: 'GitHub repo to update'
required: true
token:
description: 'GitHub personal access token (PAT)'
required: true
commit-prefix:
description: 'Prepended to the git commit message'
required: false
default: 'gitops'
git-email:
description: 'Email address to set as user.email'
required: false
default: '[email protected]'
git-name:
description: 'Name to set as user.name'
required: false
default: 'GitOps Automation'
message:
description: 'Git commit message'
required: true
merge-auto:
description: 'Set non empty string to automatically merge pull request'
required: false
default: ''
merge-type:
description: 'Type of merge. Only applies if merge-auto is set. [squash(default)|rebase|merge]'
required: false
default: 'squash'
runs:
using: 'docker'
image: 'Dockerfile'
env:
GITHUB_REPO: ${{ inputs.repo }}
GITHUB_TOKEN: ${{ inputs.token }}
COMMIT_MESSAGE: ${{ inputs.message }}
COMMIT_PREFIX: ${{ inputs.commit-prefix }}
GIT_EMAIL: ${{ inputs.git-email }}
GIT_NAME: ${{ inputs.git-name }}
MERGE_AUTO: ${{ inputs.merge-auto }}
MERGE_TYPE: ${{ inputs.merge-type }}