Add actions.yml

This commit is contained in:
Stefan Zweifel 2019-08-20 20:43:07 +02:00
parent 04ec73a958
commit 3fe53a7d31
2 changed files with 23 additions and 1 deletions

22
actions.yml Normal file
View 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

View File

@ -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