feat: copy content of sparse
This commit is contained in:
parent
40ff2b96ce
commit
dccf1ad44c
@ -8,7 +8,8 @@ git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "$GITHUB_SH
|
|||||||
git checkout --progress --force -B main "$GITHUB_SHA"
|
git checkout --progress --force -B main "$GITHUB_SHA"
|
||||||
|
|
||||||
if [ -n "$INPUT_SUBPATH" ]; then (
|
if [ -n "$INPUT_SUBPATH" ]; then (
|
||||||
shopt -s extglob dotglob
|
shopt -s dotglob
|
||||||
rm !("$INPUT_SUBPATH")
|
git sparse-checkout set "$INPUT_SUBPATH"
|
||||||
mv -T "$INPUT_SUBPATH" .
|
mv "$INPUT_SUBPATH"/* .
|
||||||
|
rmdir "$INPUT_SUBPATH"
|
||||||
) fi
|
) fi
|
||||||
|
Loading…
Reference in New Issue
Block a user