mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
Testing - Removed old test reference (#673)
Fixed regression when retests were failed for not windows.
This commit is contained in:
13
.github/actions/download-artifacts/action.yml
vendored
13
.github/actions/download-artifacts/action.yml
vendored
@@ -49,15 +49,14 @@ runs:
|
|||||||
mkdir -p temp-extract
|
mkdir -p temp-extract
|
||||||
tar -xzf "$ARCHIVE_FILE" -C temp-extract
|
tar -xzf "$ARCHIVE_FILE" -C temp-extract
|
||||||
|
|
||||||
# Move the extracted content to the desired path
|
# Create target directory and copy content (preserving existing files)
|
||||||
|
mkdir -p "$EXTRACT_PATH"
|
||||||
|
|
||||||
|
# Copy from install/ subdirectory if it exists, otherwise copy everything
|
||||||
if [ -d "temp-extract/install" ]; then
|
if [ -d "temp-extract/install" ]; then
|
||||||
# Remove target directory if it exists to avoid nesting
|
cp -r temp-extract/install/* "$EXTRACT_PATH/"
|
||||||
rm -rf "$EXTRACT_PATH"
|
|
||||||
mv "temp-extract/install" "$EXTRACT_PATH"
|
|
||||||
else
|
else
|
||||||
# If archive doesn't contain install/, move everything
|
cp -r temp-extract/* "$EXTRACT_PATH/"
|
||||||
mkdir -p "$EXTRACT_PATH"
|
|
||||||
mv temp-extract/* "$EXTRACT_PATH/"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean up temp directory
|
# Clean up temp directory
|
||||||
|
Reference in New Issue
Block a user