From f001a725173f9ecfec3b503efe8084617ba284cb Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 29 Sep 2021 13:16:22 +0200 Subject: [PATCH] simplify --- .github/workflows/chromatic-workflow_run.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/chromatic-workflow_run.yml b/.github/workflows/chromatic-workflow_run.yml index 8ddda2d2f..5344d66ec 100644 --- a/.github/workflows/chromatic-workflow_run.yml +++ b/.github/workflows/chromatic-workflow_run.yml @@ -2,7 +2,7 @@ name: "Chromatic (workflow_run)" on: workflow_run: workflows: - - "Chromatic (manual)" + - "Action" types: - completed @@ -10,15 +10,11 @@ jobs: chromatic: runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 - with: - node-version: '14.x' - uses: actions/checkout@v1 - - name: install - run: yarn && git status --porcelain - - name: prep package - run: ./scripts/rename.js storybook-chromatic - - name: run chromatic - run: yarn chromatic - env: - CHROMATIC_PROJECT_TOKEN: gcaw1ai2dgo + - run: yarn + - uses: chromaui/action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + projectToken: gcaw1ai2dgo + exitZeroOnChanges: true + exitOnceUploaded: true