We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aea8d8 commit 2b11156Copy full SHA for 2b11156
.github/workflows/unit-test.yml
@@ -37,5 +37,14 @@ jobs:
37
run: npm run test:cov
38
39
- name: Update Coverage Badge
40
- if: ${{ matrix.os == 'ubuntu-22.04' && matrix.node-version == 18 }}
+ # Is there a way to tell if a PR is from a forked repository? #26829
41
+ # https://github.com/orgs/community/discussions/26829#discussioncomment-3253580
42
+ 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
46
+ ) || (
47
+ github.event_name == 'pull_request_target' &&
48
+ github.event.pull_request.head.repo.full_name != github.repository
49
+ ))
50
uses: we-cli/coverage-badge-action@main
0 commit comments