From 09efb62c2fe5f6d73bfcf276fdf96b3f593754b6 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Wed, 15 Nov 2023 16:36:13 +0000 Subject: [PATCH] test --- .github/workflows/notify-coverage.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/notify-coverage.yml b/.github/workflows/notify-coverage.yml index ec303214d..7ca2d9de6 100644 --- a/.github/workflows/notify-coverage.yml +++ b/.github/workflows/notify-coverage.yml @@ -43,7 +43,7 @@ jobs: fi PREV_SHA=$( cat head-sha.txt ) - echo "Previous sha: \"$PREV_SHA\"\n" + echo "Previous sha: \"$PREV_SHA\"" # Check if the sha has changed if [ "$PREV_SHA" == "${{ github.sha }}" ] @@ -67,18 +67,18 @@ jobs: > coverage-prev.json cat coverage-prev.json | jq ".results[0].max" > coverage-prev.txt echo "Previous coverage query result:" - cat coverage-prev.json | jq "del(.files)" | echo + cat coverage-prev.json | jq "del(.files)" echo # Query the current coverage from codecov curl --request GET \ - --url "https://api.codecov.io/api/v2/github/${{ github.repository_owner }}/repos/${{ github.event.repository.name }}/totals/" \ + --url "https://api.codecov.io/api/v2/github/${{ github.repository_owner }}/repos/${{ github.event.repository.name }}/totals/?sha=${{ github.sha }}" \ --header 'accept: application/json' \ --header "authorization: Bearer ${{ secrets.CODECOV_GET_TOKEN }}" \ > coverage.json cat coverage.json | jq ".results[-1].max" > coverage.txt echo "Current coverage query result:" - cat coverage.json | jq "del(.files)" | echo + cat coverage.json | jq "del(.files)" echo # A `null` in either coverage means that the coverage is not available,