Skip to content

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/unit-test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ jobs:
4040
# Is there a way to tell if a PR is from a forked repository? #26829
4141
# https://github.com/orgs/community/discussions/26829#discussioncomment-3253580
4242
if: >-
43-
matrix.os == 'ubuntu-22.04' && matrix.node-version == 18 && ((
44-
github.event_name == 'pull_request' &&
45-
github.event.pull_request.head.repo.full_name == github.repository
43+
${{ matrix.os == 'ubuntu-22.04' && matrix.node-version == 18 && ((
44+
github.event_name != 'pull_request'
4645
) || (
47-
github.event_name == 'pull_request_target' &&
48-
github.event.pull_request.head.repo.full_name != github.repository
49-
))
46+
github.event.pull_request.head.repo.full_name == github.repository
47+
)) }}
5048
uses: we-cli/coverage-badge-action@main

0 commit comments

Comments
 (0)