mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
Add actions.yml
This commit is contained in:
parent
04ec73a958
commit
3fe53a7d31
22
actions.yml
Normal file
22
actions.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Git Auto Commit
|
||||||
|
description: 'Automatically commits files which have been changed.'
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
commit_message:
|
||||||
|
description: 'Commit message'
|
||||||
|
required: true
|
||||||
|
commit_author_name:
|
||||||
|
description: 'Name of the commit author'
|
||||||
|
required: true
|
||||||
|
commit_author_email:
|
||||||
|
description: 'Email address of the commit author'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile'
|
||||||
|
entrypoint: 'entrypoint.sh'
|
||||||
|
|
||||||
|
branding:
|
||||||
|
icon: 'git-commit'
|
||||||
|
color: orange
|
@ -6,5 +6,5 @@ git config --global user.name "GitHub Actions"
|
|||||||
|
|
||||||
git add -A
|
git add -A
|
||||||
git status
|
git status
|
||||||
git commit -m "$COMMIT_MESSAGE" --author="$COMMIT_AUTHOR_NAME <$COMMIT_AUTHOR_EMAIL>" || echo "No changes found. Nothing to commit."
|
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR_NAME <$INPUTCOMMIT_AUTHOR_EMAIL>" || echo "No changes found. Nothing to commit."
|
||||||
git push -u origin HEAD
|
git push -u origin HEAD
|
||||||
|
Loading…
Reference in New Issue
Block a user