diff --git a/.github/workflows/ci-tests-xcode-beta.yml b/.github/workflows/ci-tests-xcode-beta.yml index 19d4f9ff7..7e2e60880 100644 --- a/.github/workflows/ci-tests-xcode-beta.yml +++ b/.github/workflows/ci-tests-xcode-beta.yml @@ -162,27 +162,27 @@ jobs: run: | npm install && npm test - name: Save xcodebuild logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-logs path: | DerivedData/Logs/Build - name: Save crash logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-crashes path: | ~/Library/Logs/DiagnosticReports - name: Zip Result Bundle - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} shell: bash working-directory: TestResults run: | zip -r ResultBundle.zip ResultBundle.xcresult - name: Save test results - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-results diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index ed5ece384..e20d5a455 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -162,27 +162,27 @@ jobs: run: | npm install && npm test - name: Save xcodebuild logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-logs path: | DerivedData/Logs/Build - name: Save crash logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-crashes path: | ~/Library/Logs/DiagnosticReports - name: Zip Result Bundle - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} shell: bash working-directory: TestResults run: | zip -r ResultBundle.zip ResultBundle.xcresult - name: Save test results - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() && steps.build-and-test.outcome != 'skipped' }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-results