Skip to content

Commit 0eb21b1

Browse files
Copilotabernier
andcommitted
Simplify condition to only check for secret presence
Co-authored-by: abernier <[email protected]>
1 parent a024a02 commit 0eb21b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/chromatic.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ 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 != ''
8+
# Only run if the CHROMATIC_PROJECT_TOKEN secret is available
9+
if: secrets.CHROMATIC_PROJECT_TOKEN != ''
1110
steps:
1211
- uses: actions/checkout@v4
1312
with:

0 commit comments

Comments
 (0)