Skip to content

Commit 9b86cb4

Browse files
authored
Handle pull requests from forks (#4762)
1 parent 4373a01 commit 9b86cb4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,25 @@ jobs:
4242

4343
- run: yarn run lint
4444

45-
- uses: paambaati/[email protected]
45+
- name: Run Coverage Report
46+
if: '!github.event.pull_request.head.repo.fork'
47+
uses: paambaati/[email protected]
4648
env:
4749
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
4850
with:
4951
coverageCommand: xvfb-run -a yarn run cover
5052
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
5153

52-
- run: yarn build-storybook
54+
- name: Run Fork Coverage
55+
if: 'github.event.pull_request.head.repo.fork'
56+
run: xvfb-run -a yarn run cover
57+
58+
- name: Build Storybook
59+
if: '!github.event.pull_request.head.repo.fork'
60+
run: yarn build-storybook
5361

5462
- name: Publish to Chromatic
63+
if: '!github.event.pull_request.head.repo.fork'
5564
uses: chromaui/action@v1
5665
with:
5766
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)