From 8b4b25785940fe17c9d492630065208fe70d875f Mon Sep 17 00:00:00 2001 From: Tyler Carrol Date: Mon, 2 Dec 2024 20:47:29 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feature:=20Codecov=20-=20Compare=20?= =?UTF-8?q?Actor=20for=20Upload=20(#77)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ct-matrix.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ct-matrix.yml b/.github/workflows/ct-matrix.yml index 93f85cf..357fa1d 100644 --- a/.github/workflows/ct-matrix.yml +++ b/.github/workflows/ct-matrix.yml @@ -77,7 +77,7 @@ jobs: # Skip: README, CHANGELOG, LICENSE, THIRD-PARTY-LICENSES, .gitignore, GitHub Workflows & Actions, etc. - name: Check for Changes to Determine if Tests can be Skipped id: getChanges - uses: tj-actions/changed-files@v45.0.3 + uses: tj-actions/changed-files@v45.0.4 with: files_ignore: | README.md @@ -107,7 +107,7 @@ jobs: dotnet-version: ${{ matrix.dotnet-version }} - name: Setup NuGet - uses: NuGet/setup-nuget@v2.0.0 + uses: NuGet/setup-nuget@v2.0.1 - name: Restore NuGet run: nuget restore @@ -144,9 +144,10 @@ jobs: #################################################################################################### ### Code Coverage ### #################################################################################################### - - name: Upload Results to Codecov (Optional) - if: ${{ !fromJSON(steps.getCanSkip.outputs.result) }} - uses: codecov/codecov-action@v4 + # Upload results to codecov if the actor is the repository owner + - name: Upload Results to Codecov (Optional) [${{ github.actor }}] + if: ${{ !fromJSON(steps.getCanSkip.outputs.result) && github.actor == 'TylerCarrol' }} + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} files: "**/TestResults/**/coverage.cobertura.xml"