Skip to content

Commit a024a02

Browse files
Copilotabernier
andcommitted
Restrict Chromatic workflow to pmndrs/drei repo with secret check
Co-authored-by: abernier <[email protected]>
1 parent 1b6105f commit a024a02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/chromatic.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: push
55
jobs:
66
chromatic:
77
runs-on: ubuntu-latest
8+
# Only run on the main pmndrs/drei repository, not on forks
9+
# Also only run if the CHROMATIC_PROJECT_TOKEN secret is available
10+
if: github.repository == 'pmndrs/drei' && secrets.CHROMATIC_PROJECT_TOKEN != ''
811
steps:
912
- uses: actions/checkout@v4
1013
with:

0 commit comments

Comments
 (0)