From 435bf7c9ded893c2cea310b8c91eb38ed7fe95e5 Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 1 Mar 2024 23:57:22 +0100 Subject: [PATCH] Fix wrong commit sha being used for coverage uploads Signed-off-by: Niklas --- .github/workflows/ci-test-pr-coverage.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci-test-pr-coverage.yml b/.github/workflows/ci-test-pr-coverage.yml index 4965d3aae1..12ddfd996d 100644 --- a/.github/workflows/ci-test-pr-coverage.yml +++ b/.github/workflows/ci-test-pr-coverage.yml @@ -27,9 +27,6 @@ jobs: run: |- bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} \ - --commit-uuid "$(cat ./pr-commit.txt)" \ + --commit-uuid ${{ github.event.workflow_run.head_sha }} \ --coverage-reports ./target/jacoco-ut/jacoco.xml \ --language Java - bash <(curl -Ls https://coverage.codacy.com/get.sh) final \ - --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} \ - --commit-uuid "$(cat ./pr-commit.txt)"