update git push to remote action

Signed-off-by: GuillaumeFalourd <guillaume.falourd@zup.com.br>
This commit is contained in:
GuillaumeFalourd 2022-01-06 22:08:29 -03:00
parent 5f659c1817
commit 49269c1e82

View file

@ -132,12 +132,7 @@ runs:
echo
echo "##### Copying contents to destination Github repository #####"
if [ -z "${{ inputs.target_dir }}" ]; then
cp -rvf "${{ inputs.source_files }}" "$CLONE_DIRECTORY"
else
mkdir -p "$CLONE_DIRECTORY/${{ inputs.target_dir }}"
cp -rvf "${{ inputs.source_files }}" "$CLONE_DIRECTORY/${{ inputs.target_dir }}"
fi
cp -rvf "${{ inputs.files }}" "$CLONE_DIRECTORY"
cd "$CLONE_DIRECTORY"