2019-08-21 02:43:07 +08:00
|
|
|
name: Git Auto Commit
|
2019-10-26 22:33:59 +08:00
|
|
|
description: 'Automatically commits files which have been changed during the workflow run and push changes back to remote repository.'
|
2019-08-21 02:43:07 +08:00
|
|
|
|
2019-08-21 03:05:17 +08:00
|
|
|
author: Stefan Zweifel <hello@stefanzweifel.io>
|
|
|
|
|
2019-08-21 02:43:07 +08:00
|
|
|
inputs:
|
|
|
|
commit_message:
|
2019-09-20 16:46:35 +08:00
|
|
|
description: Commit message
|
2019-08-21 02:43:07 +08:00
|
|
|
required: true
|
2019-10-31 16:02:56 +08:00
|
|
|
commit_options:
|
2019-12-18 18:58:17 +08:00
|
|
|
description: Commit options (eg. --no-verify)
|
2019-10-31 16:02:56 +08:00
|
|
|
required: false
|
2019-09-21 02:26:41 +08:00
|
|
|
branch:
|
2019-12-18 18:58:17 +08:00
|
|
|
description: Branch name where changes should be pushed too
|
2019-09-20 16:30:36 +08:00
|
|
|
required: true
|
2019-10-26 02:51:12 +08:00
|
|
|
file_pattern:
|
|
|
|
description: File pattern used for "git add"
|
2019-10-26 18:13:56 +08:00
|
|
|
required: false
|
2019-11-01 17:15:22 +08:00
|
|
|
default: '.'
|
2019-12-10 20:02:34 +08:00
|
|
|
repository:
|
2019-12-18 18:58:17 +08:00
|
|
|
description: Path to git repository
|
2019-12-10 20:02:34 +08:00
|
|
|
required: false
|
|
|
|
default: '.'
|
2019-09-20 16:30:36 +08:00
|
|
|
|
2019-08-21 02:43:07 +08:00
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: 'Dockerfile'
|
2019-11-01 16:51:54 +08:00
|
|
|
args:
|
|
|
|
- ${{ inputs.commit_message }}
|
|
|
|
- ${{ inputs.commit_options }}
|
|
|
|
- ${{ inputs.branch }}
|
|
|
|
- ${{ inputs.file_pattern }}
|
2019-12-10 20:02:34 +08:00
|
|
|
- ${{ inputs.repository }}
|
2019-08-21 02:43:07 +08:00
|
|
|
|
|
|
|
branding:
|
|
|
|
icon: 'git-commit'
|
|
|
|
color: orange
|