mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2026-06-16 16:38:51 +00:00
Expand file pattern array in git-status
This commit is contained in:
parent
7c07d30816
commit
12eef67c61
@ -40,8 +40,11 @@ _git_is_dirty() {
|
|||||||
echo "INPUT_STATUS_OPTIONS: ${INPUT_STATUS_OPTIONS}";
|
echo "INPUT_STATUS_OPTIONS: ${INPUT_STATUS_OPTIONS}";
|
||||||
echo "::debug::Apply status options ${INPUT_STATUS_OPTIONS}";
|
echo "::debug::Apply status options ${INPUT_STATUS_OPTIONS}";
|
||||||
|
|
||||||
|
echo "INPUT_FILE_PATTERN: ${INPUT_FILE_PATTERN}";
|
||||||
|
INPUT_FILE_PATTERN_ARRAY=( ${INPUT_FILE_PATTERN} )
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
[ -n "$(git status -s $INPUT_STATUS_OPTIONS -- $INPUT_FILE_PATTERN)" ]
|
[ -n "$(git status -s $INPUT_STATUS_OPTIONS -- ${INPUT_FILE_PATTERN:+${INPUT_FILE_PATTERN_ARRAY[@]}})" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
_switch_to_branch() {
|
_switch_to_branch() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user