generated from devops-infra/template-action
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathaction.yml
More file actions
57 lines (57 loc) · 1.89 KB
/
action.yml
File metadata and controls
57 lines (57 loc) · 1.89 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: GitHub Action for committing changes to repository
author: Krzysztof Szyper / ChristophShyper / shyper.pro
description: Powerful GitHub Action for automatically committing and pushing changes back to your repository
inputs:
github_token:
description: Personal Access Token for GitHub for pushing the code
required: true
default: ""
add_timestamp:
description: Whether to add timestamp to a new branch name
required: false
default: "false"
amend:
description: Whether to make amendment to the previous commit (--amend). Can be combined with commit_message to change the message.
required: false
default: "false"
commit_prefix:
description: Prefix added to commit message
required: false
default: ""
commit_message:
description: Commit message to set
required: false
default: ""
force:
description: Whether to use force push (--force). Use only when you need to overwrite remote changes. Potentially dangerous.
required: false
default: "false"
force_with_lease:
description: Whether to use force push with lease (--force-with-lease). Safer than force as it checks for remote changes.
required: false
default: "false"
no_edit:
description: Whether to not edit commit message when using amend
required: false
default: "false"
organization_domain:
description: Name of GitHub Enterprise organization
required: false
default: github.com
target_branch:
description: Name of a new branch to push the code into (skipped when no changes and amend is false)
required: false
default: ""
outputs:
files_changed:
description: List of changed files
branch_name:
description: Name of the branch code was pushed into
runs:
using: docker
image: docker://devopsinfra/action-commit-push:v1.0.3
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
branding:
color: purple
icon: upload-cloud