Skip to content

Commit 851868c

Browse files
buidl: fix checks for prs from forked repositories (#281)
* fix workflow * update workflow * fix workflwo * add comment
1 parent f91dd32 commit 851868c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ jobs:
3131
run: yarn test
3232
- name: Build
3333
run: yarn build
34-
chromatic-deployment:
35-
runs-on: ubuntu-latest
36-
# Job steps
37-
steps:
38-
- uses: actions/checkout@v1
39-
- name: Install dependencies
40-
run: yarn
4134
- name: Publish to Chromatic
4235
uses: chromaui/action@v1
36+
# don't run this step if project token secret not specified
37+
# to prevent this workflow failing for any forked repositories
38+
if: ${{ env.projectToken }}
4339
with:
4440
token: ${{ secrets.GITHUB_TOKEN }}
4541
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)