-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
42 lines (38 loc) · 1.13 KB
/
action.yaml
File metadata and controls
42 lines (38 loc) · 1.13 KB
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
name: "Commit git changes"
description: "Commit git changes directly to GitHub using the GraphQL API"
author: "step-security"
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: "docker://ghcr.io/step-security/ghcommit-action:v0.2.22@sha256:ef99ba329c1503ca192718b6a8a897d1abffee64b208a673d6d32d53e89e381a" #v0.2.22
args:
- ${{ inputs.commit_message }}
- ${{ inputs.repo }}
- ${{ inputs.branch }}
- ${{ inputs.empty }}
- ${{ inputs.file_pattern }}