From df5b3349787af4766b5b16195001b7d36e140c69 Mon Sep 17 00:00:00 2001 From: WindowsMEMZ <45706356+WindowsMEMZ@users.noreply.github.com> Date: Sun, 19 Nov 2023 00:27:22 +0800 Subject: [PATCH] Update ios.yml --- .github/workflows/ios.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 3a38f6240..3aacc2ab7 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -116,10 +116,13 @@ jobs: name: Watch Testing Log path: ./TestBuilding.log - - name: Upload DerivedData + - name: Rename Test Attachments + run: for file in ./Caches/DerivedData/Logs/Test/Test-*.xcresult/Data/*; do if [ ! -f "$file" ]; then continue; fi; file_type=$(file -b --mime-type "$file"); extension=""; case "$file_type" in "image/jpeg" | "image/jpg") extension=".jpg";; "image/png") extension=".png";; "text/plain") extension=".txt";; *) extension=".dat";; esac; mv "$file" "$file$extension"; done + + - name: Upload Test Attachments uses: actions/upload-artifact@v3 with: - name: DerivedData - path: ./Caches/DerivedData + name: Test Attachments + path: ./Caches/DerivedData/Logs/Test