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

Run CI on PR merge commit #1625

Merged
merged 1 commit into from
Aug 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
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