Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Run CI on PR merge commit (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Aug 13, 2021
1 parent ccd59b7 commit 3ea8dfb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -48,8 +48,6 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
# Chromatic requires running build on the branch head, not PR merge commit
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
lfs: true

Expand All @@ -70,8 +68,9 @@ jobs:

- run: ${{ matrix.config.command }}
env:
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
# Chromatic fails to run on PR merge ref unless head BRANCH and SHA are passed explicitly
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref }}
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

integration:
Expand All @@ -87,7 +86,6 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
lfs: true

- uses: actions/setup-node@v2
Expand Down

0 comments on commit 3ea8dfb

Please sign in to comment.