feat: copy content of sparse
This commit is contained in:
parent
40ff2b96ce
commit
dccf1ad44c
1 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
||||
if [ -n "$INPUT_SUBPATH" ]; then (
|
||||
shopt -s extglob dotglob
|
||||
rm !("$INPUT_SUBPATH")
|
||||
mv -T "$INPUT_SUBPATH" .
|
||||
shopt -s dotglob
|
||||
git sparse-checkout set "$INPUT_SUBPATH"
|
||||
mv "$INPUT_SUBPATH"/* .
|
||||
rmdir "$INPUT_SUBPATH"
|
||||
) fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue