Skip to content

Commit

Permalink
update the code snippet to accurately reflect our recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed Dec 5, 2024
1 parent aceb6b4 commit b36053b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/ci/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ If you decide to use the `pull_request` event, we recommend creating a separate
fetch-depth: 0
# 👇 Tells the checkout which commit hash to reference
ref: ${{ github.event.pull_request.head.ref }}
env:
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.ref }}
CHROMATIC_SLUG: ${{ github.repository }}
```

### UI Test and UI Review
Expand Down

0 comments on commit b36053b

Please sign in to comment.