From 2070d9d3e580057d49e8fe38a4fe3672cf59f6c6 Mon Sep 17 00:00:00 2001
From: Paul Bartell <pbartell@amazon.com>
Date: Tue, 28 Jun 2022 14:07:17 -0700
Subject: [PATCH] Update codecov action to v3.1.0

---
 .github/workflows/unit-tests.yml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index b8abd9c8a..ac398c106 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -35,14 +35,12 @@ jobs:
           make -C FreeRTOS/Test/CMock lcovhtml
           lcov --config-file FreeRTOS/Test/CMock/lcovrc --summary FreeRTOS/Test/CMock/build/cmock_test.info > FreeRTOS/Test/CMock/build/cmock_test_summary.txt
     - name: Upload coverage to Codecov
-      uses: codecov/codecov-action@v1
+      uses: codecov/codecov-action@v3.1.0
       with:
-        files: FreeRTOS/Test/CMock/build/cmock_test.info
-        working-directory: .
-        root_dir: FreeRTOS/Source
+        files: ${{ github.workspace }}/FreeRTOS/Test/CMock/build/cmock_test.info
+        root_dir: ${{ github.workspace }}/FreeRTOS/Source
         flags: unittests
         fail_ci_if_error: false
-        path_to_write_report: coverage/codecov_report.txt
         verbose: false
     - name: Archive code coverage data
       uses: actions/upload-artifact@v2