Skip to content

Add analytics to homepage #4084

Add analytics to homepage

Add analytics to homepage #4084

name: Changesets
on: [pull_request]
jobs:
changeset_present:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
sparse-checkout: ./.changeset
- name: Changeset file lookup
env:
GH_TOKEN: ${{ github.token }}
PR_ID: ${{ github.event.number }}
run: |
files=$(gh pr diff "$PR_ID" --name-only)
if [[ $files =~ \.changeset\/.*.md ]]; then
echo "Changesets found!"
else
echo "There is no changeset file in your pull request."
exit 1
fi