Skip to content

Commit fc3459d

Browse files
authored
✨ feature: Codecov - Compare Actor for Upload (#76)
1 parent f8df8bf commit fc3459d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ct-matrix.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# Skip: README, CHANGELOG, LICENSE, THIRD-PARTY-LICENSES, .gitignore, GitHub Workflows & Actions, etc.
7878
- name: Check for Changes to Determine if Tests can be Skipped
7979
id: getChanges
80-
uses: tj-actions/[email protected].3
80+
uses: tj-actions/[email protected].4
8181
with:
8282
files_ignore: |
8383
README.md
@@ -107,7 +107,7 @@ jobs:
107107
dotnet-version: ${{ matrix.dotnet-version }}
108108

109109
- name: Setup NuGet
110-
uses: NuGet/[email protected].0
110+
uses: NuGet/[email protected].1
111111

112112
- name: Restore NuGet
113113
run: nuget restore
@@ -144,9 +144,10 @@ jobs:
144144
####################################################################################################
145145
### Code Coverage ###
146146
####################################################################################################
147-
- name: Upload Results to Codecov (Optional)
148-
if: ${{ !fromJSON(steps.getCanSkip.outputs.result) }}
149-
uses: codecov/codecov-action@v4
147+
# Upload results to codecov if the actor is the repository owner
148+
- name: Upload Results to Codecov (Optional) [${{ github.actor }}]
149+
if: ${{ !fromJSON(steps.getCanSkip.outputs.result) && github.actor == 'TylerCarrol' }}
150+
uses: codecov/codecov-action@v5
150151
with:
151152
token: ${{ secrets.CODECOV_TOKEN }}
152153
files: "**/TestResults/**/coverage.cobertura.xml"

0 commit comments

Comments
 (0)