change passing excluded directories to reset

This commit is contained in:
Pavel Sukhodolski 2023-05-03 00:16:39 +04:00 committed by pavletto
parent 31935d560b
commit 785fccdc08
2 changed files with 3 additions and 2 deletions

View File

@ -56,6 +56,7 @@ inputs:
required: false
exclude-directories:
description: '[Optional] The directory to exclude for remove from remote repo'
default: ''
required: false
runs:

View File

@ -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