Add file_pattern argument

This commit is contained in:
Stefan Zweifel 2019-10-25 20:51:12 +02:00
parent 9fc8aa621f
commit 40956d2dbd
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,9 @@ inputs:
branch: branch:
description: Branch where changes should be pushed too description: Branch where changes should be pushed too
required: true required: true
file_pattern:
description: File pattern used for "git add"
default: '.'
runs: runs:
using: 'docker' using: 'docker'

View File

@ -30,7 +30,7 @@ then
# Switch to branch from current Workflow run # Switch to branch from current Workflow run
git checkout $INPUT_BRANCH 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>" git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>"