mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
ci: disable chromatic on forks (#1806)
This commit is contained in:
4
.github/workflows/chromatic.yaml
vendored
4
.github/workflows/chromatic.yaml
vendored
@ -42,7 +42,7 @@ jobs:
|
||||
# storybook snapshots will require manual approval/review in order for
|
||||
# the check to pass. This is desired in PRs, but not in mainline.
|
||||
- name: Publish to Chromatic (non-mainline)
|
||||
if: github.ref != 'refs/heads/main'
|
||||
if: github.ref != 'refs/heads/main' && github.repository_owner == 'coder'
|
||||
uses: chromaui/action@v1
|
||||
with:
|
||||
buildScriptName: "storybook:build"
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
# commits, but it's good to be defensive in case, otherwise CI remains
|
||||
# infinitely "in progress" in mainline unless we re-review each build.
|
||||
- name: Publish to Chromatic (mainline)
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/main' && github.repository_owner == 'coder'
|
||||
uses: chromaui/action@v1
|
||||
with:
|
||||
autoAcceptChanges: true
|
||||
|
Reference in New Issue
Block a user