File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed
actions/capture-screenshot Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11name : " Capture screenshot"
22description : " Captures a screenshot of the machine"
3+ inputs :
4+ suffix :
5+ description : " The suffix of the screenshot"
6+ required : false
7+ default : " "
38runs :
49 using : " composite"
510 steps :
1015 - name : Store screenshot
1116 uses : actions/upload-artifact@v4
1217 with :
13- name : screenshot-${{ github.job }}
18+ name : screenshot-${{ github.job }}${{ inputs.suffix }}
1419 path : /tmp/screenshot.png
Original file line number Diff line number Diff line change 1212 required : false
1313 default : " "
1414 type : string
15- xcresult_suffix :
16- description : " Suffix for the xcresult artifact (if needed) "
15+ files_suffix :
16+ description : " Suffix for the files to upload "
1717 required : false
1818 default : " "
1919 type : string
@@ -95,18 +95,20 @@ jobs:
9595 uses : actions/upload-artifact@v4
9696 if : ${{ failure() }}
9797 with :
98- name : ${{ inputs.fastlane_command }}${{inputs.xcresult_suffix}}
98+ name : ${{ inputs.fastlane_command }}${{ inputs.files_suffix }}.xcresult
9999 path : fastlane/test_results/${{ inputs.fastlane_command }}.xcresult
100100
101101 - name : Archiving Raw Test Logs
102102 uses : actions/upload-artifact@v4
103103 if : ${{ failure() || cancelled() }}
104104 with :
105- name : ${{ inputs.fastlane_command }}${{inputs.xcresult_suffix }}_raw_output
105+ name : ${{ inputs.fastlane_command }}${{ inputs.files_suffix }}_raw_output
106106 path : |
107107 ~/Library/Logs/scan/*.log
108108 ./fastlane/test_output/**
109109
110110 - name : Store screenshot
111111 uses : ./.github/actions/capture-screenshot
112112 if : failure()
113+ with :
114+ suffix : ${{ inputs.fastlane_command }}${{ inputs.files_suffix }}
Original file line number Diff line number Diff line change 3030 build_with_make : true
3131 xcode_version : ${{matrix.platform.xcode}}
3232 macos_version : ${{matrix.platform.runs-on}}
33+ files_suffix : _${{matrix.platform.xcode}}
3334 strategy :
3435 fail-fast : false
3536 matrix :
Original file line number Diff line number Diff line change 6969 with :
7070 fastlane_command : ui_tests_ios_swift
7171 fastlane_command_extra_arguments : device:"${{matrix.device}}"
72- xcresult_suffix : _xcode_${{matrix.xcode}}-${{matrix.device}}
72+ files_suffix : _xcode_${{matrix.xcode}}-${{matrix.device}}
7373 xcode_version : ${{matrix.xcode}}
7474 build_with_make : true
7575 macos_version : ${{matrix.runs-on}}
You can’t perform that action at this time.
0 commit comments