Skip to content

Commit 6e8e96f

Browse files
kimShubham8287
authored andcommitted
ci: Skip the Unity tests if the PR is an external contribution (#2978)
1 parent c531580 commit 6e8e96f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/csharp-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,6 @@ jobs:
140140
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
141141
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
142142
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
143+
# Skip if this is an external contribution.
144+
# The license secrets will be empty, so the step would fail anyway.
145+
if: ${{ !github.event.pull_request.head.repo.fork }}

0 commit comments

Comments
 (0)