mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-01-09 08:36:09 -07:00
change passing excluded directories to reset
This commit is contained in:
parent
31935d560b
commit
785fccdc08
|
@ -56,6 +56,7 @@ inputs:
|
|||
required: false
|
||||
exclude-directories:
|
||||
description: '[Optional] The directory to exclude for remove from remote repo'
|
||||
default: ''
|
||||
required: false
|
||||
|
||||
runs:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user