diff --git a/actions.yml b/actions.yml index 853234a..5aa28f8 100644 --- a/actions.yml +++ b/actions.yml @@ -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' diff --git a/entrypoint.sh b/entrypoint.sh index b5d6348..ff9669f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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>"