From 1ad3e7cc9d69d08550644cca773e34400241f090 Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Fri, 4 Mar 2022 16:35:46 +0000
Subject: [PATCH] Frustration at artifact handling vs what's in docs.

---
 .github/workflows/nightly.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 37797129bb..f80dd10c69 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -354,8 +354,9 @@ jobs:
             ${{ runner.os }}-gradle-
       - uses: actions/download-artifact@v3
         with:
-          name: codecov-xml # will restore to build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml by default
-      - run: ls -R build/reports # temporary check to see if the report is actually downloading correctly.
+          name: codecov-xml # will restore to codecov-xml/allCodeCoverageReport.xml by default; we restore to the same location in following tasks
+      - run: mkdir -P build/reports/jacoco/allCodeCoverageReport/
+      - run: mv codecov-xml/allCodeCoverageReport.xml build/reports/jacoco/allCodeCoverageReport/
       - run: ./gradlew sonarqube $CI_GRADLE_ARG_PROPERTIES
         env:
           ORG_GRADLE_PROJECT_SONAR_LOGIN: ${{ secrets.SONAR_TOKEN }}