mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-01-09 16:55:17 -07:00
change passing excluded directories to reset
This commit is contained in:
parent
31935d560b
commit
785fccdc08
|
@ -56,6 +56,7 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
exclude-directories:
|
exclude-directories:
|
||||||
description: '[Optional] The directory to exclude for remove from remote repo'
|
description: '[Optional] The directory to exclude for remove from remote repo'
|
||||||
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
|
|
|
@ -160,8 +160,8 @@ git add .
|
||||||
if [ -n "$EXCLUDE_DIRECTORIES" ]
|
if [ -n "$EXCLUDE_DIRECTORIES" ]
|
||||||
then
|
then
|
||||||
echo "[+] Checkout excluded dirs"
|
echo "[+] Checkout excluded dirs"
|
||||||
git reset -- "$EXCLUDE_DIRECTORIES"
|
git reset -- $(echo $EXCLUDE_DIRECTORIES)
|
||||||
git restore "$EXCLUDE_DIRECTORIES"
|
git restore $(echo $EXCLUDE_DIRECTORIES)
|
||||||
fi
|
fi
|
||||||
echo "[+] git status:"
|
echo "[+] git status:"
|
||||||
git status
|
git status
|
||||||
|
|
Loading…
Reference in New Issue
Block a user