Skip to content

Commit

Permalink
feat(gh/actions/chromatic): require label for automatic chromatic runs (
Browse files Browse the repository at this point in the history
#2368)

* feat(gh/actions/chromatic): allow running Chromatic CI manually

The Chromatic build hasn't been run since we ran out of snapshots, and it's now behind and causing a few issues with snapshots. By allowing this action to be run manually, we can use the CI to update


* fix(gh/actions/chromatic): require `chromatic` label on PR's, only run automatically on PR's

---------

Co-authored-by: Josh Larson <[email protected]>
  • Loading branch information
firestack and joshlarson authored Jan 19, 2024
1 parent 3118f01 commit 5e773e4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: "Chromatic"

on: push
on:
workflow_dispatch:
pull_request:
types:
- synchronize
- labeled
push:
branches:
- main


jobs:
chromatic:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'chromatic') }}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 5e773e4

Please sign in to comment.