-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yaml
41 lines (37 loc) · 1011 Bytes
/
action.yaml
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
name: "Commit git changes"
description: "Commit git changes directly to GitHub using the GraphQL API"
branding:
color: "orange"
icon: "git-commit"
inputs:
commit_message:
description: The commit message to use.
required: true
repo:
description: The name of the repo to commit to in "owner/repo" format.
required: true
branch:
description: The name of the branch to commit to.
required: true
empty:
description: Allow making an empty commit if there are no changes.
required: false
default: "false"
file_pattern:
description: File pattern used for `git add`. For example `src/*.js`
required: false
default: "."
outputs:
commit-url:
description: The URL of the created commit.
commit-hash:
description: The hash of the created commit.
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.commit_message }}
- ${{ inputs.repo }}
- ${{ inputs.branch }}
- ${{ inputs.empty }}
- ${{ inputs.file_pattern }}