Skip to content

Commit

Permalink
Update ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Nov 18, 2023
1 parent 10a5be3 commit df5b334
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit df5b334

Please sign in to comment.