You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/10/05 11:08:00 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #29946: [SPARK-33069][INFRA] Skip test result report if no JUnit XML files are found

HyukjinKwon commented on a change in pull request #29946:
URL: https://github.com/apache/spark/pull/29946#discussion_r499517740



##########
File path: .github/workflows/test_report.yml
##########
@@ -15,7 +15,16 @@ jobs:
         github_token: ${{ secrets.GITHUB_TOKEN }}
         workflow: ${{ github.event.workflow_run.workflow_id }}
         commit: ${{ github.event.workflow_run.head_commit.id }}
+    - name: Check if JUnit report XML files exist
+      run: |
+        if ls **/target/test-reports/*.xml > /dev/null 2>&1; then
+          echo '::set-output name=FILE_EXISTS::true'

Review comment:
       BTW, the way is [what GitHub suggested](https://github.community/t/run-step-if-file-exists/16445/3).




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org