Skip to content

Commit

Permalink
Merge pull request #606 from chromaui/reuben/chdx-1066-update-the-git…
Browse files Browse the repository at this point in the history
…hub-action-pull_request-documentation

update the code snippet to accurately reflect our recommendations
  • Loading branch information
winkerVSbecks authored Dec 5, 2024
2 parents aceb6b4 + b36053b commit 25ddefb
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 25ddefb

Please sign in to comment.