Skip to content

Commit a777888

Browse files
committed
ci: Skip the Unity tests if the PR is an external contribution
We don't want to leak the license information. Alternatively, we could just make the check non-required.
1 parent 4290500 commit a777888

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.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)