File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -264,19 +264,18 @@ jobs:
264264 run : |
265265 set -e # Exit on error
266266
267- # Current coverage is already uploaded in this workflow
268- echo "Downloading current coverage..."
269- if ! gh run download "${{ github.run_id }}" --name=consolidated-code-coverage --dir=/tmp/current-coverage; then
270- echo "❌ Failed to download current coverage artifacts"
271- exit 1
272- fi
267+ # Use the locally consolidated coverage file (no download needed!)
268+ echo "Using locally consolidated coverage..."
269+ mkdir -p .github/outputs
273270
274- if [[ ! -f /tmp/current -coverage/coverage.txt ]]; then
275- echo "❌ Current coverage file not found"
271+ if [[ ! -f consolidated-coverage/coverage.txt || ! -s consolidated -coverage/coverage.txt ]]; then
272+ echo "❌ Consolidated coverage file not found or empty "
276273 exit 1
277274 fi
278275
279- mv /tmp/current-coverage/coverage.txt .github/outputs/new-coverage.txt
276+ # Copy (don't move) so the artifact upload still has the original
277+ cp consolidated-coverage/coverage.txt .github/outputs/new-coverage.txt
278+ echo "✅ Current coverage prepared from local file"
280279
281280 # Download baseline coverage from main (failure here is acceptable)
282281 echo "Downloading baseline coverage..."
You can’t perform that action at this time.
0 commit comments