Skip to content

Commit d4efdff

Browse files
committed
ci: enable Chromatic for Draft PRs with special PR label
1 parent 33f9bd9 commit d4efdff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
uses: chromaui/action@07791f8243f4cb2698bf4d00426baf4b2d1cb7e0 # v13.3.5
227227
if: |
228228
github.event.pull_request.draft == false &&
229-
github.actor != 'dependabot[bot]'
229+
github.actor != 'dependabot[bot]' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci/chromatic'))
230230
with:
231231
autoAcceptChanges: ${{ env.MAIN_BRANCH }}
232232
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)