mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Add file_pattern argument
This commit is contained in:
parent
9fc8aa621f
commit
40956d2dbd
@ -10,6 +10,9 @@ inputs:
|
||||
branch:
|
||||
description: Branch where changes should be pushed too
|
||||
required: true
|
||||
file_pattern:
|
||||
description: File pattern used for "git add"
|
||||
default: '.'
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
|
@ -30,7 +30,7 @@ then
|
||||
# Switch to branch from current Workflow run
|
||||
git checkout $INPUT_BRANCH
|
||||
|
||||
git add .
|
||||
git add $INPUT_FILE_PATTERN
|
||||
|
||||
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user