Skip to content

Commit

Permalink
Merge pull request #642 from danskernesdigitalebibliotek/chromatic-ac…
Browse files Browse the repository at this point in the history
…tion-tweak

Update Chromatic deployment action, to only deploy when needed.
  • Loading branch information
rasben authored Jun 6, 2024
2 parents 5dd22df + 6ab7420 commit 3ff56df
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: "Chromatic"
name: 'Chromatic'

on:
push:
branches:
# Required for creating baselines
- main
- develop
- release/*
pull_request:
types: [ready_for_review, opened, synchronize]

# Detect if this action is already running, and cancel it.
# This most likely happened because a second push has been made to a branch.
concurrency:
group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on: push
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3ff56df

Please sign in to comment.