diff --git a/action.yml b/action.yml index a80c485..a71e162 100644 --- a/action.yml +++ b/action.yml @@ -56,6 +56,7 @@ inputs: required: false exclude-directories: description: '[Optional] The directory to exclude for remove from remote repo' + default: '' required: false runs: diff --git a/entrypoint.sh b/entrypoint.sh index acc926b..3dd759a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -160,8 +160,8 @@ git add . if [ -n "$EXCLUDE_DIRECTORIES" ] then echo "[+] Checkout excluded dirs" - git reset -- "$EXCLUDE_DIRECTORIES" - git restore "$EXCLUDE_DIRECTORIES" + git reset -- $(echo $EXCLUDE_DIRECTORIES) + git restore $(echo $EXCLUDE_DIRECTORIES) fi echo "[+] git status:" git status